Skip to content

deviceCapabilities

Vijay Koushik, S edited this page Nov 10, 2018 · 7 revisions

Class: deviceCapabilities

Identifies the device's capabilities. source: deviceCapabilities.js line 18

ancestor: Device

Constructor

deviceCapabilities()

creates a new instance of deviceCapabilities.

Private Properties

ua

ua: string

The User Agent of the client browser.

This property automatically stores the User agent string of the client browser. This property is used internally and should not be modified.

source: deviceCapabilities.js line 158

Public Properties

android - androidBrowser - blackberry - canvas - chrome - chromeMobile - desktop - edge - edgeMobile - fireFox - fireFoxMobile - gamepad - ie - ieMobile - iOS - kindle - linux - localStorage - mac - mobile - opera - safari - silk - touch - webOS - windows - windowsPhone

android: boolean

is device running android?

This property is set to true if the device is running Android operating system.

source: deviceCapabilities.js line 68

androidBrowser: boolean

is the client browser default Andorid browser?

This property is set to true when the client browser is the Android stock browser.

source: deviceCapabilities.js line 143

blackberry: boolean

is the device running blackberry?

This property is set to true if the device is running BlackBerry operating system.

canvas: boolean

does the client device support canvas API?

This property is set to true if the client browser suppoets HTML5 canvas API.

source: deviceCapabilities.js line 38

chrome: boolean

is the client Chrome browser?

This property is set to true if the client browser is Chrome.

source: deviceCapabilites.js line 93

chromeMobile: boolean

is the cilent mobile version of chrome?

This property is set to true if the client browser is mobile version of Chrome.

source: deviceCapabilites.js line 123

desktop: boolean

is the cilent device desktop?

This property is set to true if the client device is a desktop.

source: deviceCapabilites.js line 23

edge: boolean

is the cilent browser is Edge?

This property is set to true if the client browser is Edge.

source: deviceCapabilites.js line 113

edgeMobile: boolean

is the cilent browser is mobile version of Edge?

This property is set to true if the client browser is mobile version of Edge.

source: deviceCapabilites.js line 138

firefox: boolean

is the cilent browser is fireFox?

This property is set to true if the client browser is Firefox.

source: deviceCapabilites.js line 98

firefoxMobile: boolean

is the cilent browser is mobile version of fireFox?

This property is set to true if the client browser is mobile version of Firefox.

source: deviceCapabilites.js line 128

gamepad: boolean

does the client device support gamepad API?

This property is set to true if the client browser supports HTML5 gamepad API.

source: deviceCapabilities.js line 33

ie: boolean

is the cilent browser internet explorer?

This property is set to true if the client browser is Internet Explorer.

source: deviceCapabilites.js line 118

ieMobile: boolean

is the cilent browser is mobile version of internet explorer?

This property is set to true if the client browser is mobile version of Internet Explorer.

source: deviceCapabilites.js line 133

iOS: boolean

is device running iOS?

This property is set to true if the device is running iOS operating system.

source: deviceCapabilities.js line 73

kindle: boolean

is device is a kindle device?

This property is set to true if the device is a kindle device.

source: deviceCapabilities.js line 83

linux: boolean

is device running linux?

This property is set to true if the device is running linux operating system.

source: deviceCapabilities.js line 53

localStorage: boolean

does the browser support local storage API?

This property is set to true if the client browser supports local storage API.

source: deviceCapabilities.js line 153

mac: boolean

is device running mac?

This property is set to true if the device is running apple mac operating system.

source: deviceCapabilities.js line 58

mobile: boolean

is device a mobile device?

This property is set to true if the device is a mobile phone or a tablet.

source: deviceCapabilities.js line 43

opera: boolean

is the browser opera?

This property is set to true if the client browser is Opera.

source: deviceCapabilities.js line 103

silk: boolean

is the browser Amazon Silk?

This property is set to true if the client browser is Amazon Silk.

source: deviceCapabilities.js line 148

safari: boolean

is the browser Safari?

This property is set to true if the client browser is Apple's Safari.

source: deviceCapabilities.js line 108

touch: boolean

does the browser support touch?

This property is set to true if the client browser supports touch API.

source: deviceCapabilities.js line 28

webOS: boolean

is device running webOS?

This property is set to true if the device is running webOS operating system.

source: deviceCapabilities.js line 78

windows: boolean

is device running windows?

This property is set to true if the device is running Microsoft's Windows operating system.

source: deviceCapabilities.js line 48

windowsPhone: boolean

is device running windowsPhone?

This property is set to true if the device is running Microsoft's Windows Phone operating system.

source: deviceCapabilities.js line 63