Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIDeviceMotionListener

This interface can be implemented by clients that want to be notified orientation or acceleration changes on supported devices.
1.0
28
Introduced
Gecko 1.9.2
Inherits from: nsISupports Last changed in Gecko 6.0 (Firefox 6.0 / Thunderbird 6.0 / SeaMonkey 2.3)

Method overview

void onMotionChange(in nsIDeviceMotionData aMotionData);

Methods

onMotionChange()

Called when new orientation or acceleration data is available.

void onMotionChange(
  in nsIDeviceMotionData aMotionData
);
Parameters
aAcceleration
The nsIDeviceMotionData object describing updated motion information.

See also

Document Tags and Contributors

 Contributors to this page: Sheppy, fryn, trevorh
 Last updated by: Sheppy,