> ## 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.stopDeviceMotionListening

> Stop listening for device orientation changes.

Use this API to stop listening for changes in the device's orientation.

## Parameters

| Property | Type | Required | Description |
| - | - | - | - |
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |

## Error Codes

| Code | Description | Action |
| - | - | - |
| 1000 | Device orientation listening is not enabled | Check that `my.startDeviceMotionListening` was called first |

## Code Example

```javascript theme={null}
my.stopDeviceMotionListening({
  success() {
    console.log('Stopped');
  }
});
```

## Related APIs

> [card] [my.startDeviceMotionListening](https://docs.rebellapp.com/jsapi/device/device-motion/my.startDeviceMotionListening.md)
>
> Start listening

> [card] [my.offDeviceMotionChange](https://docs.rebellapp.com/jsapi/device/device-motion/my.offDeviceMotionChange.md)
>
> Remove listeners


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