nsISupports
Last changed in Gecko 6.0 (Firefox 6.0 / Thunderbird 6.0 / SeaMonkey 2.3)nsIDeviceMotion
prior to Gecko 6.0 (Firefox 6.0 / Thunderbird 6.0 / SeaMonkey 2.3).void addListener(in nsIDeviceMotionListener aListener); |
void addWindowListener(in nsIDOMWindow aWindow); Native code only! |
void removeListener(in nsIDeviceMotionListener aListener); |
void removeWindowListener(in nsIDOMWindow aWindow); Native code only! |
When called, the accelerometer support implementation must begin to notify the specified nsIDeviceMotionListener
by calling its nsIDeviceMotionListener.onAccelerationChange()
method as appropriate to share updated acceleration data.
void addListener( in nsIDeviceMotionListener aListener );
aListener
nsIDeviceMotionListener
object whose nsIDeviceMotionListener.onAccelerationChange()
method should be called with updated acceleration data.Sets the nsIAccelerometer
as the source for MozOrientation
events on the specified DOM window
.
void addWindowListener( in nsIDOMWindow aWindow );
aWindow
MozOrientation
events to.Tells the accelerometer to stop sending updates to the specified nsIDeviceMotionListener
.
void removeListener( in nsIDeviceMotionListener aListener );
aListener
nsIDeviceMotionListener
object to which no further updates should be sent.Removes the nsIAccelerometer
as the source for MozOrientation
events on the specified DOM window
.
void removeWindowListener( in nsIDOMWindow aWindow );
aWindow
MozOrientation
events to.