Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ComputePressureObserverWrapper

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

Hierarchy

  • ComputePressureObserverWrapper

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

Static IsAvailable

  • get IsAvailable(): boolean
  • Returns true if ComputePressureObserver is available for use, false otherwise.

    Returns boolean

Methods

observeSearch playground for observe

  • observe(): void
  • Method that must be called to begin observing changes, and triggering callbacks.

    Returns void

unobserveSearch playground for unobserve

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

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method