Table of Contents

Class AbsoluteOrientationSensor

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The AbsoluteOrientationSensor interface of the Sensor APIs describes the device's physical orientation in relation to the Earth's reference coordinate system.

[Value("AbsoluteOrientationSensor")]
public class AbsoluteOrientationSensor : OrientationSensor
Inheritance
AbsoluteOrientationSensor
Inherited Members

Remarks

To use this sensor, the user must grant permission to the 'accelerometer', 'gyroscope', and 'magnetometer' device sensors through the Permissions API.

This feature may be blocked by a Permissions Policy set on your server.

See also on MDN

Constructors

AbsoluteOrientationSensor()

public AbsoluteOrientationSensor()

AbsoluteOrientationSensor(OrientationSensorOptions)

The AbsoluteOrientationSensor() constructor creates a new AbsoluteOrientationSensor object which describes the device's physical orientation in relation to the Earth's reference coordinate system.

public AbsoluteOrientationSensor(OrientationSensorOptions sensorOptions = null)

Parameters

sensorOptions OrientationSensorOptions

Remarks

-'sensor.Reading' event

See also on MDN