DevicePosture Class
The posture of the device for a document (https://w3c.github.io/device-posture/#the-deviceposture-interface, navigator.devicePosture), read from the DevicePostureProvider of the browsing context (DevicePostureOptions.Provider): the change event is fired when it changes, while the document is visible.
public sealed class DevicePosture : EventTarget- Inheritance
EventTargetDevicePosture
Properties
| Name | Description |
|---|---|
| OnChange | Gets or sets the event handler of the change event. |
| Type | Gets the current posture of the device (the [[CurrentPosture]] slot of the document). |
OnChange
DevicePosture.csGets or sets the event handler of the change event.
Property value
See also
Type
DevicePosture.csGets the current posture of the device (the [[CurrentPosture]] slot of the document).
public DevicePostureType Type { get; }