|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.locationProvider.LocationProvider
public class LocationProvider
Adapter of the INS to the Look! framework
Constructor Summary | |
---|---|
LocationProvider(Context context)
Contructor. |
Method Summary | |
---|---|
static Context |
getContext()
Add new motion sample to the queue |
static float[] |
getDisplacement()
Returns relative displacement. |
static float[] |
getMapPosition()
Returns position in map coordinates. |
static float[] |
getPosition()
Returns raw position |
static boolean |
isMoving()
Returns whether the device is moving or not. |
void |
onAccuracyChanged(Sensor arg0,
int arg1)
|
void |
onSensorChanged(SensorEvent event)
|
void |
resetINS()
|
void |
run()
Recalculates distance moved |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocationProvider(Context context)
context
- Application context.Method Detail |
---|
public static Context getContext()
public static float[] getDisplacement()
public static float[] getMapPosition()
public static float[] getPosition()
public static boolean isMoving()
public void onAccuracyChanged(Sensor arg0, int arg1)
public void onSensorChanged(SensorEvent event)
public void resetINS()
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |