RGJS6 Platforms module.
Methods
-
<static> getAndroidVersion()
-
Get Android version.
Returns:
Android version as float, example: 8.1. Returns -1 if it's not android.
- Type
- float
-
<static> getChromeVersion()
-
Get Chrome version.
Returns:
The Chrome version, example: 71. Returns -1 if it's not Chrome.
- Type
- int
-
<static> getInfo()
-
Get a whole bunch of information on the platform.
Returns:
Information.
- Type
- object
-
<static> isAndroid()
-
Check if android.
Returns:
True of false.
- Type
- boolean
-
<static> isAndroidWebView()
-
Check if android webview.
See https://developer.chrome.com/multidevice/user-agent
Note: in development, may not work reliably.Returns:
True of false.
- Type
- boolean
-
<static> isChrome()
-
Check if browser is Chrome.
Returns:
True of false.
- Type
- boolean
-
<static> isDesktop()
-
Check if desktop OS. Returns true for everything that is not a phone or tablet.
Returns:
True of false.
- Type
- boolean
-
<static> isEdge()
-
Check if browser is Edge.
Returns:
True of false.
- Type
- boolean
-
<static> isFirefox()
-
Check if browser is Firefox.
Returns:
True of false.
- Type
- boolean
-
<static> isIE()
-
Check if browser is IE.
Returns:
True of false.
- Type
- boolean
-
<static> isIOS()
-
Check if iOS. iPadOS is considered iOS, too.
Returns:
True of false.
- Type
- boolean
-
<static> isIPadOS()
-
Check if iPadOS
Returns:
True or false.
- Type
- boolean
-
<static> isMobile()
-
Check if mobile OS. Phones and tablets are considered mobile.
Returns:
True of false.
- Type
- boolean
-
<static> isPWA()
-
Check if in standalone PWA.
Returns:
True of false.
- Type
- boolean
-
<static> isPhone()
-
Check if phone.
Returns:
True of false.
- Type
- boolean
-
<static> isSafari()
-
Check if browser is Safari.
Returns:
True of false.
- Type
- boolean
-
<static> isStandalone()
-
Check if in standalone PWA or TWA mode.
Returns:
True of false.
- Type
- boolean
-
<static> isTWA()
-
Check if in standalone TWA.
Returns:
True of false.
- Type
- boolean
-
<static> isTablet()
-
Check if tablet.
Returns:
True of false.
- Type
- boolean