Class: Platform

Platform

A way to detect platform from window.navigator.userAgent and window.navigator.platform. Inspired from https://stackoverflow.com/questions/38241480/detect-macos-ios-windows-android-and-linux-os-with-js


new Platform()

Sets userAgent and platform

Source:

Members


isAndroid :boolean

Whether the platform is Android

Type:
  • boolean
Source:

isIOS :boolean

Whether the platform is iOS

Type:
  • boolean
Source:

isLinux :boolean

Whether the platform is Linux

Type:
  • boolean
Source:

isMac :boolean

Whether the platform is Mac

Type:
  • boolean
Source:

isUnidentified :boolean

Whether the platform is unidentified

Type:
  • boolean
Source:

isWin :boolean

Whether the platform is Windows

Type:
  • boolean
Source: