---
name: "offRecordingEvent"
mode: "kit"
versionRequirements:
  - { name: "BaseKit", version: "2.3.2" }
  - { name: "@ray-js/ray", version: "0.3.23" }
platform:
  - "iOS"
  - "Android"
async: true
---

## offRecordingEvent

> [VERSION] BaseKit >= 2.3.2 | @ray-js/ray >= 0.3.23

> [PLATFORM] iOS, Android

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

### Description

Continuous recording event

### Parameters

`(listener: Function)`

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `listener` | `(params: AudioRecordBufferBean) => void` | Yes | - |  |

### Referenced Types

##### `interface` AudioRecordBufferBean

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `buffer` | `number[]` | `2.3.2` | Data stream |


### Examples

#### Demo

```tsx
import { onRecordingEvent, offRecordingEvent } from '@ray-js/ray'

const listener = function (res) { console.log(res) }
onRecordingEvent(listener)
offRecordingEvent(listener)
```
