Device#cordova

cordova : boolean Is the game running under Apache Cordova? Source code: utils/Device.js (Line 82)

Device#cocoonJSApp

cocoonJSApp : boolean Is this game running with CocoonJS.App? Source code: utils/Device.js (Line 76)

Device#cocoonJS

cocoonJS : boolean Is the game running under CocoonJS? Source code: utils/Device.js (Line 70)

Device#chromeVersion

chromeVersion : number If running in Chrome this will contain the major version number. Source code: utils/Device.js (Line 269)

Device#chromeOS

chromeOS : boolean Is running on chromeOS? Source code: utils/Device.js (Line 124)

Device#chrome

chrome : boolean Set to true if running in Chrome. Source code: utils/Device.js (Line 263)

Device#canvasBitBltShift

canvasBitBltShift : boolean True if canvas supports a 'copy' bitblt onto itself when the source and destination regions overlap. Source code: utils/Device.js (Line 162)

Device#canvas

canvas : boolean Is canvas available? Source code: utils/Device.js (Line 156)

Device#canPlayVideo()

canPlayVideo(type) → {boolean} Check whether the host environment can play video files. Parameters Name Type Description type string One of 'mp4, 'ogg', 'webm' or 'mpeg'. Returns boolean - True if the given file type is supported by the browser, otherwise false. Source code: utils/Device.js (Line 1293)

Device#canPlayAudio()

canPlayAudio(type) → {boolean} Check whether the host environment can play audio. Parameters Name Type Description type string One of 'mp3, 'ogg', 'm4a', 'wav', 'webm' or 'opus'. Returns boolean - True if the given file type is supported by the browser, otherwise false. Source code: utils/Device.js (Line 1250)