net.rim.device.api.system
Interface AccelerometerListener


public interface AccelerometerListener

Listener for accelerometer notifications.

The listener will be notified when channel recieves new data. If the channel is opened for orientation then the listener will be notified each time handheld changes orientation. If the channel is configured for raw accelerometer data then it will be notified on each sensor reading as they usually differ in the real world.

Since:
JDE 4.7.0

Method Summary
 void onData(AccelerometerData accData)
          Notifies listener with new accelerometer data.
 

Method Detail

onData

public void onData(AccelerometerData accData)
Notifies listener with new accelerometer data. The event object will contain only information the application subsribed for during channel registration. The listener notification is performed in the application event dispatch thread.
Parameters:
accData - accelerometer data containing subscribed information
Since:
JDE 4.7.0



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.