MemoryPressureProvider
abstract class MemoryPressureProvider : AbstractNotifier<MemoryPressureLevel> , MemoryPressure(source)
Abstract base class for implementing platform-specific memory pressure providers.
This class provides a common pattern for implementing memory pressure monitoring across different platforms by managing the lifecycle of a platform-specific receiver that monitors memory pressure events.
Inheritors
Types
Functions
Link copied to clipboard
Registers a listener to receive events.
Link copied to clipboard
Converts this Listenable into a Flow that emits events.
Link copied to clipboard
Checks if there are any registered listeners.
Link copied to clipboard
Notifies all registered listeners about an event.
Link copied to clipboard
Unregisters a listener from receiving events.