MemoryPressure

Interface for receiving events of memory pressure.

Inheritors

Types

Link copied to clipboard

An object indicating unsupported for the capability of memory pressure.

Functions

Link copied to clipboard
abstract fun addListener(listener: Listener<MemoryPressureLevel>)

Registers a listener to receive events.

Link copied to clipboard
fun <E> Listenable<E>.asFlow(): Flow<E>

Converts this Listenable into a Flow that emits events.

Link copied to clipboard

Unregisters a listener from receiving events.