Namespace sap.ui.Device.systemModule: sap/ui/Device
Provides a basic categorization of the used device based on various indicators.
These indicators are for example the support of touch events, the screen size, the used operation system or the user agent of the browser.
Note: Depending on the capabilities of the device it is also possible that multiple flags are set to true
.
Field Summary
combiIf this flag is set to
true
, the device is recognized as a combination of a desktop system and tablet.desktopIf this flag is set to
true
, the device is recognized as a desktop system.phoneIf this flag is set to
true
, the device is recognized as a phone.tabletIf this flag is set to
true
, the device is recognized as a tablet.Field Detail
combi: boolean
If this flag is set to
true
, the device is recognized as a combination of a desktop system and tablet. Furthermore, a CSS class sap-combi
is added to the document root element.
Note: This property is mainly for Microsoft Windows 8 (and following) devices where the mouse and touch event may be supported natively by the browser being used. This property is set to true
only when both mouse and touch event are natively supported.
desktop: boolean
If this flag is set to
true
, the device is recognized as a desktop system. Furthermore, a CSS class sap-desktop
is added to the document root element.