On mobile devices, the following predefined keys can be used to return device information:
-
ClientOSEnvGet ('device_os') – returns the device operating system.
-
ClientOSEnvGet ('device_screen-width') – returns the device screen width in portrait mode in pixels.
-
ClientOSEnvGet ('device_screen-height') – returns the device screen height in portrait mode in pixels.
-
ClientOSEnvGet ('device_physical-width') – returns the device physical screen width in portrait mode in inches (Since version: 2.3)
Note that this value may not be accurate on all devices since the device OS returns inaccurate DPI values.
-
ClientOSEnvGet ('device_physical-height') – returns the device physical screen height in portrait mode in inches (Since version: 2.3)
Note that this value may not be accurate on all devices since the device OS returns inaccurate DPI values.
-
ClientOSEnvGet ('device_orientation') – returns the device screen orientation.
-
ClientOSEnvGet ('device_os-version') – returns the device OS version number.
-
ClientOSEnvGet ('device_model') – returns the device model number or name.
-
ClientOSEnvGet ('device_touch') – returns '1' if the device has a touch screen.
-
ClientOSEnvGet ('temp') – returns the cache folder of the application on the device (Android support – Since version: 2.3a).
-
ClientOSEnvGet ('device_location') or ClientOSEnvGet ('device_location|xxx|yyy') – returns the current device location (where xxx is the GPS timeout and yyy is the network timeout, Since version: 3.2a)
-
ClientOSEnvGet ('device_magic-version') – returns the RIA client version number.
-
ClientOSEnvGet ('device_udf|getargs') – returns the query parameters when the application was launched from another application (Since version: 2.3)
-
ClientOSEnvGet ('device_udf|getpushid') – returns the device ID, which can be used for sending push notifications to the device (Since version: 2.4c)
-
ClientOSEnvGet ('device_udf|my_string') – calls a user defined function as detailed in the Using Native OS Code in Mobile Applications topic (Since version: 2.2a)
-
ClientOSEnvGet('device_resource-folder') – returns the value of the resource folder as detailed in the Alternative Images – Android and iOS topic. Since version: 2.3