Class: Accelerometer

screens.sensors. Accelerometer


new Accelerometer()

The Accelerometer class get the device's location or movement.

The Accelerometer class dispatches events based on activity detected by the device's motion sensor.

This data represents the device's location or movement along a 3-dimensional axis.

Members


<readonly> isSupported

Get if accelerometer is supported


<readonly> setRequestedUpdateInterval

Set the desired time interval for updates


<constant> timer :system.process.Timer

This timer used for accelerometer update.

Type:

<constant> update :system.signals.Signal

This signal emit when accelerometer update.

Type:

Methods


notifyUpdate()

Notify when the accelerometer update.