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
- SC.platform.accelerationMaximum
- SC.platform.accelerationMinimum
- SC.platform.hasAccelerometer
- SC.platform.hasGyroscope
- SC.platform.supportsAccelerometer
- SC.platform.supportsGyroscope
Field Detail
SC.platform.accelerationMaximum NumberYES 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
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
- Default value:
- NO
- Default value:
- NO
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:21 GMT-0600 (CST)