We use cookies on this site to enhance your user experience



Sep 30 2018, 8:29 AM PST

This example indicates whether the user’s device has an enabled accelerometer. If the AccelerometerEnabled property is true, it prints:

*The device has an enabled accelerometer!

Otherwise, if the AccelerometerEnabled property is false, it prints:

The device does not have an enabled accelerometer!