Added getDestination() calls to retrive destination point from
CompassOverlay Change-Id: I98a1d3f585a21faa5966c9718b84c75e94a84d24 Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -187,6 +187,14 @@ public class CompasOverlay extends Overlay implements CompassListener {
|
||||
public float getBearing(){
|
||||
return mBearing;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return return the current destination
|
||||
* @author ricky barrette
|
||||
*/
|
||||
public GeoPoint getDestination(){
|
||||
return mDestination;
|
||||
}
|
||||
|
||||
/**
|
||||
* Called from the compass Sensor to update the current bearing
|
||||
|
||||
@@ -311,6 +311,14 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio
|
||||
isFollowingUser = followUser;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return return the current destination
|
||||
* @author ricky barrette
|
||||
*/
|
||||
public GeoPoint getDestination(){
|
||||
return mCompass.getDestination();
|
||||
}
|
||||
|
||||
/**
|
||||
* returns the users current bearing
|
||||
* @return
|
||||
|
||||
Reference in New Issue
Block a user