net.rim.device.api.system
Interface AccelerometerListener

All Known Implementing Classes:
CompassField

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:
BlackBerry API 4.7.0

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



Method Detail

onData

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:
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.
Legal