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

## offRecordingEvent

> [VERSION] BaseKit >= 2.3.2

> [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 | - | Event listener callback function |

### Referenced Types

##### `interface` AudioRecordBufferBean

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


### Examples

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