DevicePostureOptions Class

The host hooks of the Device Posture API (https://w3c.github.io/device-posture/, BrowsingContextOptions.DevicePosture).

public sealed class DevicePostureOptions

Constructors

NameDescription
DevicePostureOptions()

DevicePostureOptions()

public DevicePostureOptions()

No documentation is available.

Properties

NameDescription
ProviderGets or sets the source of the posture of the device (navigator.devicePosture and the device-posture media feature), e.g. a DevicePostureProvider whose DevicePostureProvider.Posture is set by the application, or a subclass that reads the hinge angle of the device. A provider can be shared by several browsing contexts. The default is null: the posture is DevicePostureType.Continuous.

Gets or sets the source of the posture of the device (navigator.devicePosture and the device-posture media feature), e.g. a DevicePostureProvider whose DevicePostureProvider.Posture is set by the application, or a subclass that reads the hinge angle of the device. A provider can be shared by several browsing contexts. The default is null: the posture is DevicePostureType.Continuous.

public DevicePostureProvider? Provider { get; init; }