|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SensorsComponentAndroid.Callback
Callback interface, any class which requires to update based on sensor values can implement this interface and receive new sensor readings when the sensors are updated, the class which implements this interface must register itself with the SensorsComponentAndroid.
Method Summary | |
---|---|
void |
onGravitySensorChanged(float[] gravity)
Called when gravity (accelerometer) sensor provide new reading at regular interval |
void |
onHeadingSensorChanged(float[] orientation)
Called when heading sensor provide new reading at regular interval |
void |
onLocationSensorChanged(LLACoordinate location)
Called when GPS provide new reading |
Method Detail |
---|
void onGravitySensorChanged(float[] gravity)
gravity
- Gravity vectorvoid onHeadingSensorChanged(float[] orientation)
orientation
- Vector containing orientation reading, x=azimuth, y=pitch, z=rollvoid onLocationSensorChanged(LLACoordinate location)
location
- New location provided by the GPS
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |