acceleration property

Returns a DeviceAcceleration object representing the acceleration (in m/s2) of the host device in motion along the X, Y, and Z axes.

This property is read-only.

IE11

 

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

DeviceMotionEvent
accelerationIncludingGravity

 

 

Show:
© 2014 Microsoft