Table of Contents

Class DevicePosture

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The DevicePosture 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

Constructors

DevicePosture()

public DevicePosture()

Properties

Onchange

[Value("onchange")]
public EventHandlerNonNull Onchange { get; set; }

Property Value

EventHandlerNonNull

Type

NOTE
Experimental
The type 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