PressureObserverOptions Class

The options of PressureObserver.Observe (https://w3c.github.io/compute-pressure/#dom-pressureobserveroptions).

public sealed class PressureObserverOptions

Constructors

NameDescription
PressureObserverOptions()

PressureObserverOptions()

public PressureObserverOptions()

No documentation is available.

Properties

NameDescription
SampleIntervalGets or sets the requested sample interval, in milliseconds: the callback is not invoked more often. With 0 (the default), the callback is only invoked when the state changes; otherwise it is invoked at this interval, whether the state changed or not.

SampleInterval

ComputePressure.cs

Gets or sets the requested sample interval, in milliseconds: the callback is not invoked more often. With 0 (the default), the callback is only invoked when the state changes; otherwise it is invoked at this interval, whether the state changed or not.

public uint SampleInterval { get; set; }