nsIDeviceMotionListener

This interface can be implemented by clients that want to be notified orientation or acceleration changes on supported devices.
1.0
52
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,