Table of Contents

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.

See also on MDN

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

options AccelerometerSensorOptions

Remarks

-'sensor.Reading' event

See also on MDN