Class DevicePosture
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalDevicePosture interface of the {{domxref("Device Posture API", "Device Posture API", "", "nocode")}} represents the device's posture, that is, whether the viewport is in a flat or folded state.
[Value("DevicePosture")]
public class DevicePosture : EventTarget
- Inheritance
-
DevicePosture
- Inherited Members
Remarks
-CSS @media/device-posture _media feature
-Device Posture API
-Origin trial for Foldable APIs on developer.chrome.com (2024)
Constructors
DevicePosture()
public DevicePosture()
Properties
Onchange
[Value("onchange")]
public EventHandlerNonNull Onchange { get; set; }
Property Value
Type
NOTE
Experimentaltype read-only property of the DevicePosture interface returns the device's current posture.
[Value("type")]
public DevicePostureType Type { get; }
Property Value
- DevicePostureType
A string representing the device's current posture. The value can be one of:
Remarks
-CSS @media/device-posture _media feature
-Device Posture API
-Origin trial for Foldable APIs on developer.chrome.com (2024)