DevicePostureOptions Class
The host hooks of the Device Posture API (https://w3c.github.io/device-posture/, BrowsingContextOptions.DevicePosture).
public sealed class DevicePostureOptionsConstructors
| Name | Description |
|---|---|
| DevicePostureOptions() |
DevicePostureOptions()
public DevicePostureOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Provider | 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. |
Provider
DevicePosture.csGets 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; }