mobilePixelDensity | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns the pixel density of the device screen (relative to a non-Retina display) | ||||||
Introduced | 5.5.3 | ||||||
OS | ios, android | ||||||
Platforms | mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Command: iphoneUseDeviceResolution Function: iphoneDeviceScale, iphoneDeviceResolution | ||||||
Description | Use the mobilePixelDensity function to find the scale of the device screen relative to a non-Retinal display on iOS and the display metrics density on Android. The mobilePixelDensity function returns the scale of the device screen (relative to a non-Retinal display on iOS), this is 2 on a retina display and 1 otherwise. On Android this function returns the display metrics. |