MemoryPressureLevel enum

Memory pressure level reported by the system.

Inheritance
Available extensions

Values

warning → const MemoryPressureLevel

Memory is getting low, release what you can.

Android: TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_RUNNING_LOW. iOS: UIApplication.didReceiveMemoryWarningNotification.

critical → const MemoryPressureLevel

Memory is critically low, the app may be killed soon.

Android: TRIM_MEMORY_RUNNING_CRITICAL, onLowMemory. iOS: critical memory pressure (DispatchSource.makeMemoryPressureSource).

background → const MemoryPressureLevel

ONLY Android. App is in background or its UI is hidden, good time to release UI resources.

TRIM_MEMORY_UI_HIDDEN, TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_MODERATE, TRIM_MEMORY_COMPLETE.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<MemoryPressureLevel>
A constant List of the values in this enum, in order of their declaration.