API / geotoolkit / util / BrowserInfo / BrowserInfo
util.BrowserInfo.BrowserInfo
Defines the utility class that returns browser info
Constructors
Methods
Methods
▸ Static getLanguage(): string
Language
string
▸ Static getVersion(): string
Version
string
▸ Static isChrome(): boolean
if Chrome browser
boolean
▸ Static isEdge(): boolean
if Edge browser
boolean
▸ Static isFirefox(): boolean
if Firefox browser
boolean
▸ Static isIE(): boolean
if IE browser
Deprecated
since 4.1.
boolean
▸ Static isIOS(): boolean
if iOS's browser
boolean
▸ Static isMac(): boolean
if Mac / iPad device
boolean
▸ Static isMobile(): boolean
if the browser is running on a mobile device Primary check uses navigator.userAgentData API, some browsers do not support it according to https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgentData Secondary check uses navigator.userAgent. In some cases the userAgent can be configured by user and might cause unreliable detection result. Because iPads running Safari are automatically spoofed as Macintosh devices, we estimate that 'Macintosh with touchscreen' are camouflaged iPad. If the device is an actual Macintosh with a touch-capable monitor, running Safari, this will still return true.
boolean
▸ Static isOpera(): boolean
if Opera browser
boolean
▸ Static isReactNative(): boolean
if React Native environment
boolean
▸ Static isSafari(): boolean
if Safari browser
boolean
▸ Static isTouchScreen(): boolean
if device uses touchscreen
boolean
▸ Static isUsingBrowser(): boolean
if using browser
boolean
▸ Static supportWasm(): boolean
if PlatformPreview6Plus
boolean