Namespace sap.ui.Device.browserModule: sap/ui/Device


Contains information about the used browser.

Namespaces & Classes
BROWSEREnumeration containing the names of known browsers.
Field Summary
chromeIf this flag is set to true, the Google Chrome browser is used.
edgeIf this flag is set to true, the Microsoft Edge browser is used.
firefoxIf this flag is set to true, the Mozilla Firefox browser is used.
fullscreenIf this flag is set to true, the Safari browser runs in standalone fullscreen mode on iOS.
mobileIf this flag is set to true, the mobile variant of the browser is used.
mozillaIf this flag is set to true, a browser featuring a Mozilla engine is used.
msieIf this flag is set to true, the Microsoft Internet Explorer browser is used.
nameThe name of the browser.
safariIf this flag is set to true, the Apple Safari browser is used.
versionThe version of the browser as float.
versionStrThe version of the browser as string.
webkitIf this flag is set to true, a browser featuring a Webkit engine is used.
webviewIf this flag is set to true, the Safari browser runs in webview mode on iOS.
internet_explorerIf this flag is set to true, the Microsoft Internet Explorer browser is used.
Field Detail
chrome: boolean
If this flag is set to true, the Google Chrome browser is used.
edge: boolean
If this flag is set to true, the Microsoft Edge browser is used.
Since:
1.30.0
firefox: boolean
If this flag is set to true, the Mozilla Firefox browser is used.
fullscreen: boolean
If this flag is set to true, the Safari browser runs in standalone fullscreen mode on iOS.

Note: This flag is only available if the Safari browser was detected. Furthermore, if this mode is detected, technically not a standard Safari is used. There might be slight differences in behavior and detection, e.g. the availability of sap.ui.Device.browser#version.

Since:
1.31.0
mobile: boolean
If this flag is set to true, the mobile variant of the browser is used.

Note: This information might not be available for all browsers.

mozilla: boolean
If this flag is set to true, a browser featuring a Mozilla engine is used.
Since:
1.20.0
msie: boolean
If this flag is set to true, the Microsoft Internet Explorer browser is used.
Since:
1.20.0
name: String
The name of the browser.
See:
sap.ui.Device.browser.BROWSER
safari: boolean
If this flag is set to true, the Apple Safari browser is used.

Note: This flag is also true when the standalone (fullscreen) mode or webview is used on iOS devices. Please also note the flags sap.ui.Device.browser#fullscreen and sap.ui.Device.browser#webview.

version: float
The version of the browser as float.

Might be -1 if no version can be determined.

versionStr: String
The version of the browser as string.

Might be empty if no version can be determined.

webkit: boolean
If this flag is set to true, a browser featuring a Webkit engine is used.
Since:
1.20.0
webview: boolean
If this flag is set to true, the Safari browser runs in webview mode on iOS.

Note: This flag is only available if the Safari browser was detected. Furthermore, if this mode is detected, technically not a standard Safari is used. There might be slight differences in behavior and detection, e.g. the availability of sap.ui.Device.browser#version.

Since:
1.31.0
internet_explorer: boolean
If this flag is set to true, the Microsoft Internet Explorer browser is used.
Deprecated:
since 1.20, use sap.ui.Device.browser.msie instead.