PressureRecord Class

A pressure state observed by a PressureObserver (https://w3c.github.io/compute-pressure/#the-pressurerecord-interface).

public sealed class PressureRecord

Properties

NameDescription
OwnContributionEstimateGets the estimated contribution of the web site to the pressure, between 0 and 1, or null.
SourceGets the observed source.
StateGets the pressure state of the source.
TimeGets the time of the sample, in milliseconds relative to the time origin of the global object of the observer.

OwnContributionEstimate

ComputePressure.cs

Gets the estimated contribution of the web site to the pressure, between 0 and 1, or null.

public double? OwnContributionEstimate { get; }

Property value

double?

Gets the observed source.

public PressureSource Source { get; }

Gets the pressure state of the source.

public PressureState State { get; }

Gets the time of the sample, in milliseconds relative to the time origin of the global object of the observer.

public double Time { get; }