browser.js
Members
-
static ANDROID_VERSION :number|string|null
-
The detected Android version - or
null
if not Android or indeterminable. -
static CHROME_VERSION :number|null
-
The detected Google Chrome version - or
null
. This has always been the Chromium version, i.e. would return on Chromium Edge. Deprecated, use CHROMIUM_VERSION instead.- Deprecated:
-
- Yes
-
static CHROMIUM_VERSION :number|null
-
The detected Chromium version - or
null
. -
static IE_VERSION :number|null
-
The detected Internet Explorer version - or
null
.- Deprecated:
-
- Yes
-
static IOS_VERSION :string|null
-
The detected iOS version - or
null
. -
static IS_ANDROID :Boolean
-
Whether or not this is an Android device.
-
static, constant IS_ANY_SAFARI :Boolean
-
Whether or not this is any flavor of Safari - including iOS.
-
static IS_CHROME :Boolean
-
Whether or not this is any Chromium browser that is not Edge.
This will also be
true
for Chrome on iOS, which will have different support as it is actually Safari under the hood.Deprecated, as the behaviour to not match Edge was to prevent Legacy Edge's UA matching. IS_CHROMIUM should be used instead. "Chromium but not Edge" could be explicitly tested with IS_CHROMIUM && !IS_EDGE
- Deprecated:
-
- Yes
-
static IS_CHROMIUM :Boolean
-
Whether or not this is any Chromium Browser
-
static IS_EDGE :Boolean
-
Whether or not this is Microsoft Edge.
-
static IS_FIREFOX :Boolean
-
Whether or not this is Mozilla Firefox.
-
static, constant IS_IOS :Boolean
-
Whether or not this is an iOS device.
-
static IS_IPAD :Boolean
-
Whether or not this device is an iPad.
-
static IS_IPHONE :Boolean
-
Whether or not this device is an iPhone.
-
static IS_IPOD :Boolean
-
Whether or not this device is an iPod.
-
static IS_SAFARI :Boolean
-
Whether or not this is desktop Safari.
-
static IS_WINDOWS :Boolean
-
Whether or not this is a Windows machine.
-
static, constant TOUCH_ENABLED :Boolean
-
Whether or not this device is touch-enabled.