Class LinearAccelerationSensor
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The LinearAccelerationSensor interface of the Sensor APIs provides on each reading the acceleration applied to the device along all three axes, but without the contribution of gravity.
[Value("LinearAccelerationSensor")]
public class LinearAccelerationSensor : Accelerometer
- Inheritance
-
LinearAccelerationSensor
- Inherited Members
Remarks
To use this sensor, the user must grant permission to the 'accelerometer' device sensor through the Permissions API. In addition, this feature may be blocked by a Permissions Policy set on your server.
Constructors
LinearAccelerationSensor()
public LinearAccelerationSensor()
LinearAccelerationSensor(AccelerometerSensorOptions)
The LinearAccelerationSensor()
constructor creates a new LinearAccelerationSensor object which
provides on each reading the acceleration applied to the device along all three axes,
but without the contribution of gravity.
public LinearAccelerationSensor(AccelerometerSensorOptions options = null)
Parameters
optionsAccelerometerSensorOptions
Remarks
-'sensor.Reading' event