isMobileDevice()

This function queries if the device from which the function is called is a mobile device or not.

Synopsis

bool isMobileDevice();

Parameters

Parameter Description
none -

Return value

The function returns TRUE if the device from which the function is called is a mobile device and FALSE if not.

Description

This function queries if the device from which the function is called is a mobile device (Android or IOS) or not.

Example

main(mapping event)
{
  bool dev;
  dev = isMobileDevice();
  DebugN("isMobileDevice:", dev);
}

Assignment

Miscellaneous functions

Availability

UI