Device#isAndroidStockBrowser()

isAndroidStockBrowser()

Detect if the host is a an Android Stock browser.
This is available before the device "ready" event.

Authors might want to scale down on effects and switch to the CANVAS rendering method on those devices.

Source code: utils/Device.js (Line 1359)
Example
var defaultRenderingMode = Phaser.Device.isAndroidStockBrowser() ? Phaser.CANVAS : Phaser.AUTO;
doc_phaser
2017-02-14 10:44:13
Comments
Leave a Comment

Please login to continue.