Class RelativeOrientationSensor
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The RelativeOrientationSensor interface of the Sensor APIs describes the device's physical orientation without regard to the Earth's reference coordinate system.
[Value("RelativeOrientationSensor")]
public class RelativeOrientationSensor : OrientationSensor
- Inheritance
-
RelativeOrientationSensor
- Inherited Members
Remarks
To use this sensor, the user must grant permission to the 'accelerometer', and 'gyroscope' device sensors through the Permissions API. In addition, this feature may be blocked by a Permissions Policy set on your server.
Constructors
RelativeOrientationSensor()
public RelativeOrientationSensor()
RelativeOrientationSensor(OrientationSensorOptions)
The RelativeOrientationSensor()
constructor creates a new RelativeOrientationSensor object which
describes the device's physical orientation.
public RelativeOrientationSensor(OrientationSensorOptions sensorOptions = null)
Parameters
sensorOptionsOrientationSensorOptions
Remarks
-'sensor.Reading' event