|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectOverlay
com.TwentyCodes.android.SkyHook.SkyHookUserOverlay
public class SkyHookUserOverlay
this class will be used to the users location on the map using skyhook's call back methods
| Field Summary | |
|---|---|
boolean |
isFollowingUser
|
| Constructor Summary | |
|---|---|
SkyHookUserOverlay(MapView mapView,
Context context)
Construct a new SkyHookUserOverlaymFollowUser |
|
SkyHookUserOverlay(MapView mapView,
Context context,
boolean followUser)
Construct a new SkyHookUserOverlay |
|
| Method Summary | |
|---|---|
void |
disableMyLocation()
Stops location updates and removes the overlay from view |
void |
draw(Canvas canvas,
MapView mapView,
boolean shadow)
we override this methods so we can provide a drawable and a location to draw on the canvas. |
void |
enableMyLocation()
Attempts to enable MyLocation, registering for updates from sky hook |
void |
followUser(boolean followUser)
Allows the map to follow the user |
float |
getUserBearing()
returns the users current bearing |
GeoPoint |
getUserLocation()
returns the users current location |
void |
onAccuracyChanged(Sensor sensor,
int accuracy)
Called when the accuracy of a sensor has changed. |
void |
onSensorChanged(SensorEvent event)
Called when sensor values have changed. |
void |
onXPSLocationChanged(GeoPoint point,
int accuracy)
called when the SkyHook location changes, this mthod is resposiable for updating the overlay location and accuracy circle. |
void |
registerListener(XPSLocationListener listener)
Attempts to register the listener for location updates |
void |
unRegisterListener()
UnResgisters the listener. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean isFollowingUser
| Constructor Detail |
|---|
public SkyHookUserOverlay(MapView mapView,
Context context)
mapView - context -
public SkyHookUserOverlay(MapView mapView,
Context context,
boolean followUser)
mapView - context - followUser - | Method Detail |
|---|
public void disableMyLocation()
public void draw(Canvas canvas,
MapView mapView,
boolean shadow)
canvas - mapView - shadow - Overlaypublic void enableMyLocation()
public void followUser(boolean followUser)
followUser - public float getUserBearing()
public GeoPoint getUserLocation()
public void onAccuracyChanged(Sensor sensor,
int accuracy)
sensor - accuracy - SensorEventListener
public void onXPSLocationChanged(GeoPoint point,
int accuracy)
onXPSLocationChanged in interface XPSLocationListenerpoint - accuracy - com.TwentyCodes.android.SkyHook.XPSLocationListener.location.LocationListener#onXPSLocationChanged(com.google.android.maps.GeoPoint, float)public void onSensorChanged(SensorEvent event)
event - SensorEventListenerpublic void registerListener(XPSLocationListener listener)
listener - public void unRegisterListener()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||