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
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.
version: float
The version of the operating system as
float
. Might be -1
if no version can be determined.