Use this API to listen to the data change event of the accelerometer. The triggering of acceleration data change events relies on the call to my.startAccelerometer.
Parameters
Property
Type
Required
Description
listener
Function
Yes
The callback function to listen to the data change event of the accelerometer