device.platform

namespace platform

The device platform type

Summary


Properties from platform

boolean
static android
boolean
static android2
boolean
static BlackBerry
boolean
static chromeOS
boolean
static ejecta
boolean
static iOS
boolean
static isMobile
boolean
static isWeixin
boolean
static Kindle
boolean
static linux
boolean
static nodeJS
string
static ua
boolean
static webApp
boolean
static wp

Public Properties


android platform.js:1
static android: boolean

boolean

true if the device is an Android platform

android2 platform.js:1
static android2: boolean

boolean

true if the device is an Android 2.x platform

BlackBerry platform.js:1
static BlackBerry: boolean

boolean

true if the device is a BlackBerry platform

chromeOS platform.js:1
static chromeOS: boolean

boolean

true if the device is running on ChromeOS.

ejecta platform.js:1
static ejecta: boolean

boolean

true if running under Ejecta

iOS platform.js:1
static iOS: boolean

boolean

true if the device is an iOS platform

isMobile platform.js:1
static isMobile: boolean

boolean

true if a mobile device

isWeixin platform.js:1
static isWeixin: boolean

boolean

true if running under Wechat

Kindle platform.js:1
static Kindle: boolean

boolean

true if the device is a Kindle platform

linux platform.js:1
static linux: boolean

boolean

true if the device is a Linux platform

nodeJS platform.js:1
static nodeJS: boolean

boolean

true if running under node.js

ua platform.js:1
static ua: string

string

the user agent string for the current device

webApp platform.js:1
static webApp: boolean

boolean

true if running as a standalone web app

wp platform.js:1
static wp: boolean

boolean

true if the device is a Windows Phone platform


Powered by webdoc!