onMemoryWarning
Requires:
BaseKit≥2.3.2@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Method signature
onMemoryWarning(listener: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 5.2.1
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 5.2.0
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