browser_api

PlatformAPI

Browser APIs pertaining to the browser’s platform.

Kind: global class


platformAPI.version : string

The browser’s four-part version string, e.g. 80.0.3987.28452.

Kind: instance property of PlatformAPI


platformAPI.isKnownPlatform() ⇒ boolean

Check if the system on which the browser is a known platform.

Kind: instance method of PlatformAPI
Returns: boolean - True if the system is a known platform.


platformAPI.isWindows() ⇒ boolean

Check if the system on which the browser is running is an Windows platform.

Kind: instance method of PlatformAPI
Returns: boolean - True if the system is an Windows platform.


platformAPI.isMacOS() ⇒ boolean

Check if the system on which the browser is running is an macOS platform.

Kind: instance method of PlatformAPI
Returns: boolean - True if the system is an macOS platform.


platformAPI.isLinux() ⇒ boolean

Check if the system on which the browser is running is an Linux platform.

Kind: instance method of PlatformAPI
Returns: boolean - True if the system is an Linux platform.


platformAPI.isAndroid() ⇒ boolean

Check if the system on which the browser is running is an Android platform.

Kind: instance method of PlatformAPI
Returns: boolean - True if the system is an Android platform.


platformAPI.isIOS() ⇒ boolean

Check if the system on which the browser is running is an iOS platform.

Kind: instance method of PlatformAPI
Returns: boolean - True if the system is an iOS platform.


platformAPI.isDesktop() ⇒ boolean

Check if the system on which the browser is running is a desktop platform.

Kind: instance method of PlatformAPI
Returns: boolean - True if the system is a desktop platform.


platformAPI.isMobile() ⇒ boolean

Check if the system on which the browser is running is a mobile platform.

Kind: instance method of PlatformAPI
Returns: boolean - True if the system is a mobile platform.


platformAPI.hasSystemArchitecture() ⇒ boolean

Check if the browser knows the architecture of the system it is running on.

Kind: instance method of PlatformAPI
Returns: boolean - True if the system architecture is known.


platformAPI.is32BitSystem() ⇒ boolean

Check if the browser is running on a 32-bit system.

Kind: instance method of PlatformAPI
Returns: boolean - True if the system’s architecture is 32-bit.


platformAPI.is64BitSystem() ⇒ boolean

Check if the browser is running on a 64-bit system.

Kind: instance method of PlatformAPI
Returns: boolean - True if the system’s architecture is 64-bit.


platformAPI.hasBrowserArchitecture() ⇒ boolean

Check if the browser knows its own architecture.

Kind: instance method of PlatformAPI
Returns: boolean - True if the browser’s architecture is known.


platformAPI.is32BitBrowser() ⇒ boolean

Check if the browser is a 32-bit application.

Kind: instance method of PlatformAPI
Returns: boolean - True if the browser’s architecture is 32-bit.


platformAPI.is64BitBrowser() ⇒ boolean

Check if the browser is a 64-bit application.

Kind: instance method of PlatformAPI
Returns: boolean - True if the browser’s architecture is 64-bit.