Interface AccelerometerListener

All Known Implementing Classes:

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.

BlackBerry API 4.7.0

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

Method Detail


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.

accData - accelerometer data containing subscribed information
BlackBerry API 4.7.0

Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.