my.offAccelerometerChange
Use this API to stop listening to acceleration data event.
Sample Code
copy
my.offAccelerometerChange();
Whether to pass callback value or not
- If the callback value is not passed, the callbacks of all events will be removed. The sample code is as follows:
copy
my.offAccelerometerChange();
- If the callback value is passed, only the corresponding callback is removed. The sample code is as follows:
copy
my.offAccelerometerChange(this.callback);