title: Taro.offAccelerometerChange(callback)
sidebar_label: offAccelerometerChange
Stops listening for acceleration data events. If the parameter is empty, all event listening is stopped.
Type
(callback: (...args: any[]) => any) => void
Parameters
| Property | Type | Description |
|---|---|---|
| callback | (…args: any[]) => any |
The callback function for the acceleration data event. |
API Support
| API | WeChat Mini-Program | H5 | React Native |
|---|---|---|---|
| Taro.offAccelerometerChange | ✔️ | ✔️ |
