global namespace that stores flags regarding platform environment and features support
- Source:
Example
if (pc.platform.touch) {
// touch is supported
}
Members
(static) android
if it is Android
- Source:
(static) cocoonjs
if it is CocoonJS
- Source:
(static) desktop
is it a desktop or laptop device
- Source:
(static) gamepads
if platform supports gamepads
- Source:
(static) ios
if it is iOS
- Source:
(static) mobile
is it a mobile or tablet device
- Source:
(static) touch
if platform supports touch input
- Source:
(static) windows
if it is Windows
- Source:
(static) workers
if the platform supports Web Workers
- Source:
(static) xbox
if it is Xbox
- Source: