com.metaio.sdk
Interface SensorsComponentAndroid.Callback

Enclosing class:
SensorsComponentAndroid

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

onGravitySensorChanged

void onGravitySensorChanged(float[] gravity)
Called when gravity (accelerometer) sensor provide new reading at regular interval

Parameters:
gravity - Gravity vector

onHeadingSensorChanged

void onHeadingSensorChanged(float[] orientation)
Called when heading sensor provide new reading at regular interval

Parameters:
orientation - Vector containing orientation reading, x=azimuth, y=pitch, z=roll

onLocationSensorChanged

void onLocationSensorChanged(LLACoordinate location)
Called when GPS provide new reading

Parameters:
location - New location provided by the GPS