acceleration property
Returns a DeviceAcceleration object representing the acceleration (in m/s²) of the host device in motion along the X, Y, and Z axes.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
ptr = object.acceleration |
Property values
Type: DeviceAcceleration
Standards information
Remarks
This property represents the acceleration of the host device independent of the effect of gravity.
See also
Show:
