The Capabilities object provides properties that describe the system and runtime that are hosting the application. For example, a mobile phone's screen might be 100 square pixels, whereas a PC screen might be 1000 square pixels. By using the Capabilities class to determine what capabilities the client has, you can provide appropriate content to as many users as possible.


Object has few read-only properties:

Lib.Media.Capabilities.pixelAspectRatio

Specifies the pixel aspect ratio of the screen, number

Lib.Media.Capabilities.screenDPI

Specifies the dots-per-inch (dpi) resolution of the screen, in pixels, number

Lib.Media.Capabilities.screenResolutionX

Specifies the maximum horizontal resolution of the screen, number

Lib.Media.Capabilities.screenResolutionY

Specifies the maximum vertical resolution of the screen, number

Lib.Media.Capabilities.screenResolutions

return array of supported resolutions on device

Lib.Media.Capabilities.language

default device language


Examples:


print(Lib.Media.Capabilities.pixelAspectRatio)

print(Lib.Media.Capabilities.screenDPI)

print(Lib.Media.Capabilities.screenResolutionX)

print(Lib.Media.Capabilities.screenResolutionY)

print(Lib.Media.Capabilities.language)

Created with the Personal Edition of HelpNDoc: Easily create EPub books