phaser/resources/docgen/output/Phaser.Device.json

1 line
15 KiB
JSON
Raw Normal View History

{"class":{"name":"Phaser.Device","extends":"","static":false,"constructor":true,"parameters":[],"help":"Detects device support capabilities. Using some elements from System.js by MrDoob and Modernizr"},"consts":[],"methods":{"public":[{"name":"canPlayAudio","static":false,"returns":{"types":["boolean"],"help":"True if the given file type is supported by the browser, otherwise false."},"help":"Check whether the host environment can play audio.","line":882,"public":true,"protected":false,"private":false,"parameters":[{"name":"type","type":["string"],"help":"One of 'mp3, 'ogg', 'm4a', 'wav', 'webm' or 'opus'.","optional":false,"default":null}],"inherited":false,"inheritedFrom":""},{"name":"checkFullScreenSupport","static":false,"returns":null,"help":"Checks for support of the Full Screen API.","line":526,"public":true,"protected":false,"private":false,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"isConsoleOpen","static":false,"returns":{"types":["boolean"],"help":"True if the browser dev console is open."},"help":"Check whether the console is open.\\nNote that this only works in Firefox with Firebug and earlier versions of Chrome.\\nIt used to work in Chrome, but then they removed the ability: http:\/\/src.chromium.org\/viewvc\/blink?view=revision&revision=151136","line":921,"public":true,"protected":false,"private":false,"parameters":[],"inherited":false,"inheritedFrom":""}],"protected":[],"private":[{"name":"_checkAudio","static":false,"returns":null,"help":"Check audio support.","line":701,"public":false,"protected":false,"private":true,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"_checkBrowser","static":false,"returns":null,"help":"Check what browser is game running in.","line":586,"public":false,"protected":false,"private":true,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"_checkCSS3D","static":false,"returns":null,"help":"Check whether the host environment support 3D CSS.","line":847,"public":false,"protected":false,"private":true,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"_checkDevice","static":false,"returns":null,"help":"Check PixelRatio, iOS device, Vibration API, ArrayBuffers and endianess.","line":748,"public":false,"protected":false,"private":true,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"_checkFeatures","static":false,"returns":null,"help":"Check HTML5 features of the host environment.","line":478,"public":false,"protected":false,"private":true,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"_checkIsLittleEndian","static":false,"returns":null,"help":"Check Little or Big Endian system.","line":787,"public":false,"protected":false,"private":true,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"_checkIsUint8ClampedImageData","static":false,"returns":null,"help":"Test to see if ImageData uses CanvasPixelArray or Uint8ClampedArray.","line":821,"public":false,"protected":false,"private":true,"parameters":[],"inherited":false,"inheritedFrom":""},{"name":"_checkOS","static":false,"returns":null,"help":"Check which OS is game running on.","line":416,"public":false,"protected":false,"private":true,"parameters":[],"inherited":false,"inheritedFrom":""}],"static":[]},"properties":{"public":[{"name":"android","type":["boolean"],"help":"","inlineHelp":"Is running on android?","line":80,"default":"false","public":true,"protected":false,"private":false,"readOnly":false},{"name":"arora","type":["boolean"],"help":"","inlineHelp":"Set to true if running in Arora.","line":204,"default":"false","public":true,"protected":false,"private":false,"readOnly":false},{"name":"audioData","type":["boolean"],"help":"","inlineHelp":"Are Audio tags available?","line":290,"default":"false","public":true,"protected":false,"private":false,"readOnly":false},{"name":"cancelFullscreen","type":["string"],"help":"","inlineHelp":"If the browser supports the Full Screen API this holds the call you need to use to cancel it.","line":389,"default":"''","public":true,"protected":false,"private":false,"readOnly":false},{"name":"canvas","t