AbsoluteOrientationSensor Class

The absolute orientation sensor (https://w3c.github.io/orientation-sensor/#absoluteorientationsensor-interface): the orientation of the device relative to the Earth. It reads the DeviceSensorType.AbsoluteOrientation sensor of the device, and needs the accelerometer, gyroscope and magnetometer permissions and features.

public sealed class AbsoluteOrientationSensor : OrientationSensor
Inheritance
OrientationSensor AbsoluteOrientationSensor

Constructors

NameDescription
AbsoluteOrientationSensor(OrientationSensorOptions?)Creates an absolute orientation sensor.

AbsoluteOrientationSensor(OrientationSensorOptions?)

MotionSensors.cs

Creates an absolute orientation sensor.

public AbsoluteOrientationSensor(OrientationSensorOptions? sensorOptions = null)