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

## offMemoryWarning

> [VERSION] BaseKit >= 2.3.2

> [PLATFORM] iOS, Android

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

### Description

Stop listening for low-memory warning events.

### Parameters

`(listener: Function)`

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

##### offMemoryWarning.listener(params) properties

| Property | Type | Required | Default | Since | Description |
| --- | --- | --- | --- | --- | --- |
| `level` | `number` | Yes | - | `2.3.2` | Memory warning level, Android-only, corresponds to system macro definitions |


### Examples

```tsx
// Stop listening for memory warnings: register with onMemoryWarning first; calling offMemoryWarning() without arguments cancels all listeners
ty.onMemoryWarning(e => console.log(e));
ty.offMemoryWarning();
```
