API

Class PressureObserverWrapper

A wrapper for the experimental pressure api which allows a callback to be called whenever certain thresholds are met.

Index
onPressureChanged: Observable<PressureRecord[]> = ...

An event triggered when the cpu usage/speed meets certain thresholds. Note: pressure is an experimental API.

  • Method that must be called to stop observing changes and triggering callbacks (cleanup function).

    Parameters

    • source: PressureSource

      defines the source to unobserve

    Returns void