> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# my.stopAccelerometer

> Stop receiving accelerometer data.

Use this API to stop receiving accelerometer data. After it is called, the Mini Program no longer receives accelerometer change events.

## Parameters

| Property | Type | Required | Description |
| - | - | - | - |
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure. Receives `error` (Number, error code) and `errorMessage` (String) |
| complete | Function | No | Callback that always executes |

## Code Example

```javascript theme={null}
my.stopAccelerometer({
  success() {
    console.log('Accelerometer stopped');
  }
});
```

## Related APIs

> [card] [my.startAccelerometer](https://docs.rebellapp.com/jsapi/device/accelerometer/my.startAccelerometer.md)
>
> Start the accelerometer

> [card] [my.onAccelerometerChange](https://docs.rebellapp.com/jsapi/device/accelerometer/my.onAccelerometerChange.md)
>
> Listen for accelerometer data


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.