Class: SC.platform

This platform object allows you to conditionally support certain HTML5 features.

Rather than relying on the user agent, it detects whether the given elements and events are supported by the browser, allowing you to create much more robust apps.

Defined in: platform.js

Field Summary

Field Detail

SC.platform.accelerationMaximum Number

Defined in: platform.js.
SC.platform.accelerationMinimum Number

Defined in: platform.js.
SC.platform.hasAccelerometer Boolean

YES if the ondevicemotion event on window has actually been fired. Some platforms have the event but will never fire it.


Defined in: platform.js.
Default value:
NO
SC.platform.hasGyroscope Boolean

YES if the ondeviceorientation event on window has actually been fired. Some platforms have the event but will never fire it.


Defined in: platform.js.
Default value:
NO
SC.platform.supportsAccelerometer Boolean
YES if the ondevicemotion event on window is supported.
Defined in: platform.js.
Default value:
NO
SC.platform.supportsGyroscope Boolean
YES if the ondeviceorientation event on window is supported.
Defined in: platform.js.
Default value:
NO
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:21 GMT-0600 (CST)