API Reference

Class List

platform

Global namespace that stores flags regarding platform environment and features support.

if (pc.platform.touch) {
    // touch is supported
}

Summary

Static Properties

android

If it is Android.[read only]

desktop

Is it a desktop or laptop device.[read only]

gamepads

If platform supports gamepads.[read only]

ios

If it is iOS.[read only]

mobile

Is it a mobile or tablet device.[read only]

touch

If platform supports touch input.[read only]

windows

If it is Windows.[read only]

workers

If the platform supports Web Workers.[read only]

xbox

If it is Xbox.[read only]

Details

Static Properties

android

If it is Android.

[read only]
desktop

Is it a desktop or laptop device.

[read only]
gamepads

If platform supports gamepads.

[read only]
ios

If it is iOS.

[read only]
mobile

Is it a mobile or tablet device.

[read only]
touch

If platform supports touch input.

[read only]
windows

If it is Windows.

[read only]
workers

If the platform supports Web Workers.

[read only]
xbox

If it is Xbox.

[read only]