Flamingo.Device¶
Flamingo.Device provides methods used to detect what kind of device is used.
Flamingo.Device Methods¶
| Method | Description |
|---|---|
| isPhone() | Returns TRUE if the currently used device is a smartphone and FALSE otherwise. |
| isTablet() | Returns TRUE if the currently used device is a tablet and FALSE otherwise. |
| isDesktop() | Returns TRUE if the currently used device is a desktop and FALSE otherwise. |
| isType() | Returns TRUE if the device specified in the parameter type matches the current user’s device and FALSE otherwise. |
| getType() | Returns ‘phone’, ‘tablet’ or ‘desktop’ depending on the device that is being used. |
| isPlatform() | Returns TRUE if the platform type specified in the method’s parameter matches the operation system used on the current device and FALSE otherwise. |
| getPlatform() | Returns ‘android’, ‘ios’, ‘firefoxos’, ‘windowsmobile’, ‘windows’, ‘macos’ or ‘linux’ depending on the platform the user’s device is running on. |
| getVersion() | Returns iOS, Android, Firefox OS or Windows Mobile operation system version. |
See also