Class DeviceMotionEventAcceleration
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The DeviceMotionEventAcceleration interface of the {{domxref("Device Orientation Events", "", "", "nocode")}} provides information about the amount of acceleration the device is experiencing along all three axes.
[Value("DeviceMotionEventAcceleration")]
public class DeviceMotionEventAcceleration
- Inheritance
-
DeviceMotionEventAcceleration
- Inherited Members
Remarks
Constructors
DeviceMotionEventAcceleration()
public DeviceMotionEventAcceleration()
Properties
X
The x read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the X
axis in a DeviceMotionEventAcceleration
object.
[Value("x")]
public Number? X { get; }
Property Value
- Number
A
doubleindicating the amount of acceleration along the X axis.
See Accelerometer values explained for details.
Remarks
Y
The y read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Y
axis in a DeviceMotionEventAcceleration
object.
[Value("y")]
public Number? Y { get; }
Property Value
- Number
A
doubleindicating the amount of acceleration along the Y axis.
See Accelerometer values explained for details.
Remarks
Z
The z read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Z
axis in a DeviceMotionEventAcceleration
object.
[Value("z")]
public Number? Z { get; }
Property Value
- Number
A
doubleindicating the amount of acceleration along the Z axis.
See Accelerometer values explained for details.