trimMemory
Dispatches a memory pressure signal to registered callbacks. Use this to notify Lynx to reclaim resources or apply degradation strategies when the system is under memory pressure.
Syntax
Android
iOS
Harmony
Parameters
pressure: Memory pressure level, one ofMemoryPressureLevel.MEMORY_PRESSURE_LEVEL_NONE: No problems, enough memory; typically not sent via callback.MEMORY_PRESSURE_LEVEL_MODERATE: Free buffers that are cheap to re-allocate and not immediately needed.MEMORY_PRESSURE_LEVEL_CRITICAL: Free all possible memory; otherwise the process may be killed by the system, incurring cold start cost.
Compatibility
LCD tables only load in the browser