Listens for out-of-memory warning events.
description On iOS/Android, This event is triggered when a memory warning is issued to the Mini Programs process. Triggering the event does not mean that the Mini Program is killed. In most cases, it is just an alarm. Developers can recover some unnecessary resources after receiving the notification to avoid further aggravating memory strain.
|Callback function for out-of-memory warning event|
Ƭ OnMemoryWarningCallback: (
|level||Memory alert level, only Android There is, corresponding to the system macro definition - 5: TRIM_MEMORY_RUNNING_MODERATE; 10: TRIM_MEMORY_RUNNING_LOW; 15: TRIM_MEMORY_RUNNING_CRITICAL;|