ComputePressureOptions Class
The host hooks of the Compute Pressure API (https://w3c.github.io/compute-pressure/, BrowsingContextOptions.ComputePressure).
public sealed class ComputePressureOptionsConstructors
| Name | Description |
|---|---|
| ComputePressureOptions() |
ComputePressureOptions()
public ComputePressureOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Provider | 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. |
Provider
ComputePressure.csGets 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; }