ComputePressureOptions Class

The host hooks of the Compute Pressure API (https://w3c.github.io/compute-pressure/, BrowsingContextOptions.ComputePressure).

public sealed class ComputePressureOptions

Constructors

NameDescription
ComputePressureOptions()

ComputePressureOptions()

public ComputePressureOptions()

No documentation is available.

Properties

NameDescription
ProviderGets or sets the source of the pressure states of the device (PressureObserver), e.g. a PressureSourceProvider whose samples are set by the application with PressureSourceProvider.SetSample, or a subclass that reads the pressure of the operating system. A provider can be shared by several browsing contexts. The default is null: the cpu source is supported, but it reports no state.

Gets or sets the source of the pressure states of the device (PressureObserver), e.g. a PressureSourceProvider whose samples are set by the application with PressureSourceProvider.SetSample, or a subclass that reads the pressure of the operating system. A provider can be shared by several browsing contexts. The default is null: the cpu source is supported, but it reports no state.

public PressureSourceProvider? Provider { get; init; }