---
name: "offGyroscopeChange"
mode: "kit"
versionRequirements:
  - { name: "BaseKit", version: "2.3.2" }
platform:
  - "iOS"
  - "Android"
async: true
---

## offGyroscopeChange

> [VERSION] BaseKit >= 2.3.2

> [PLATFORM] iOS, Android

> ⚡ **Supports Promise** — Returns a Promise when success / fail / complete callbacks are omitted.

### Description

Stop listening for gyroscope data change events.

### Parameters

`(listener: Function)`

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `listener` | `(params: Object) => void` | Yes | - | Event listener callback function |

##### offGyroscopeChange.listener(params) properties

| Property | Type | Required | Default | Since | Description |
| --- | --- | --- | --- | --- | --- |
| `x` | `number` | Yes | - | `2.3.2` | X axis |
| `y` | `number` | Yes | - | `2.3.2` | Y axis |
| `z` | `number` | Yes | - | `2.3.2` | Z axis |


### Examples

```tsx
// Stop listening to the gyroscope: first set up the listener with onGyroscopeChange + startGyroscope, then cancel with offGyroscopeChange
ty.onGyroscopeChange(e => console.log(e));
ty.startGyroscope({
  interval: "normal",
  success: () => {},
  fail: error => console.error(error),
});
ty.offGyroscopeChange(
  () => console.log("Gyroscope listener canceled"),
  error => console.error(error)
);
```
