RelativeOrientationSensor Class

The relative orientation sensor (https://w3c.github.io/orientation-sensor/#relativeorientationsensor-interface): the orientation of the device relative to a stationary frame. It reads the DeviceSensorType.RelativeOrientation sensor of the device, and needs the accelerometer and gyroscope permissions and features.

public sealed class RelativeOrientationSensor : OrientationSensor
Inheritance
OrientationSensor RelativeOrientationSensor

Constructors

NameDescription
RelativeOrientationSensor(OrientationSensorOptions?)Creates a relative orientation sensor.

RelativeOrientationSensor(OrientationSensorOptions?)

MotionSensors.cs

Creates a relative orientation sensor.

public RelativeOrientationSensor(OrientationSensorOptions? sensorOptions = null)