Namespace sap.ui.Device.osModule: sap/ui/Device


Contains information about the operating system of the device.

Namespaces & Classes
OSEnumeration containing the names of known operating systems.
Field Summary
androidIf this flag is set to true, an Android operating system is used.
blackberryIf this flag is set to true, a Blackberry operating system is used.
iosIf this flag is set to true, an iOS operating system is used.
linuxIf this flag is set to true, a Linux operating system is used.
macintoshIf this flag is set to true, a Mac operating system is used.
nameThe name of the operating system.
versionThe version of the operating system as float.
versionStrThe version of the operating system as string.
windowsIf this flag is set to true, a Windows operating system is used.
windows_phoneIf this flag is set to true, a Windows Phone operating system is used.
Field Detail
android: boolean
If this flag is set to true, an Android operating system is used.
blackberry: boolean
If this flag is set to true, a Blackberry operating system is used.
ios: boolean
If this flag is set to true, an iOS operating system is used.
linux: boolean
If this flag is set to true, a Linux operating system is used.
macintosh: boolean
If this flag is set to true, a Mac operating system is used.

Note: An iPad using Safari browser, which is requesting desktop sites, is also recognized as Macintosh.

name: String
The name of the operating system.
See:
sap.ui.Device.os.OS
version: float
The version of the operating system as float.

Might be -1 if no version can be determined.

versionStr: String
The version of the operating system as string.

Might be empty if no version can be determined.

windows: boolean
If this flag is set to true, a Windows operating system is used.
windows_phone: boolean
If this flag is set to true, a Windows Phone operating system is used.