MemoryPressure

interface MemoryPressure

Interface for receiving events of memory pressure.

Inheritors

Types

Link copied to clipboard
interface Observer

Observer interface for receiving events of memory pressure.

Link copied to clipboard

An object indicating unsupported for the capability of memory pressure.

Functions

Link copied to clipboard
abstract fun addObserver(observer: MemoryPressure.Observer)

Adds an observer to receive events.

Link copied to clipboard
open fun asFlow(): Flow<MemoryPressureLevel>

Provides a Flow to receive events of memory pressure.

Link copied to clipboard
abstract fun removeObserver(observer: MemoryPressure.Observer)

Removes an observer that receives events.