DeviceOrientationEventInit Class

The initialization dictionary of a DeviceOrientationEvent (https://w3c.github.io/deviceorientation/#dictdef-deviceorientationeventinit).

public sealed class DeviceOrientationEventInit : EventInit
Inheritance
EventInit DeviceOrientationEventInit

Constructors

NameDescription
DeviceOrientationEventInit()

DeviceOrientationEventInit()

public DeviceOrientationEventInit()

No documentation is available.

Properties

NameDescription
AbsoluteGets whether the orientation is relative to the Earth.
AlphaGets the rotation around the Z axis, in degrees, or null.
BetaGets the rotation around the X' axis, in degrees, or null.
GammaGets the rotation around the Y'' axis, in degrees, or null.

Gets whether the orientation is relative to the Earth.

public bool Absolute { get; init; }

Gets the rotation around the Z axis, in degrees, or null.

public double? Alpha { get; init; }

Gets the rotation around the X' axis, in degrees, or null.

public double? Beta { get; init; }

Gets the rotation around the Y'' axis, in degrees, or null.

public double? Gamma { get; init; }