onMemoryWarning(listener: Function)
Requires:
BaseKit≥2.3.2@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Description
Listen for low-memory warning events. When iOS/Android sends a memory warning to the miniapp process, this event is triggered. Triggering this event does not mean the miniapp is killed; in most cases it is only a warning. Developers can release unnecessary resources upon receiving the notification to avoid further memory pressure.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes |
Return Value
None