EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

DeviceMotionEvent object

Provides information about the motion of the host device, including acceleration and rate of rotation.

IE11

 

DOM Information

Inheritance Hierarchy

 Event
   DeviceMotionEvent

Members

The DeviceMotionEvent object has these types of members:

Methods

The DeviceMotionEvent object has these methods.

MethodDescription
initDeviceMotionEvent

Used to create a DeviceMotionEvent event from JavaScript.

 

Properties

The DeviceMotionEvent object has these properties.

PropertyAccess typeDescription

acceleration

Read-only

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

accelerationIncludingGravity

Read-only

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

interval

Read-only

Represents the interval (in milliseconds) at which motion data is being obtained from the underlying hardware of the host device.

rotationRate

Read-only

Returns a DeviceRotationRate object representing the rotation of the hosting device in space.

 

Standards information

See also

DeviceOrientationEvent

 

 

表示:
© 2014 Microsoft