|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.android.map.LocationService
public class LocationService
Class providing UI support to display the current location of the device on a MapView.
| Nested Class Summary | |
|---|---|
protected class |
LocationService.LocationServiceInner
|
| Constructor Summary | |
|---|---|
LocationService(MapView map)
|
|
| Method Summary | |
|---|---|
android.location.Location |
getLocation()
Returns the current location in the spatial reference WGS1984 (WKID=4326). |
android.location.LocationListener |
getLocationListener()
|
OnSingleTapListener |
getOnSingleTapListener()
Returns the current listener for the single tap event on the LocationService symbol. |
Point |
getPoint()
Returns the current coordinates in the map's spatial reference. |
Symbol |
getSymbol()
|
boolean |
isAccuracyCircleOn()
|
boolean |
isAllowNetworkLocation()
|
boolean |
isAutoPan()
|
boolean |
isBearingOn()
|
boolean |
isStarted()
|
void |
setAccuracyCircleOn(boolean accuracyCircleOn)
|
void |
setAllowNetworkLocation(boolean allowNetworkLocation)
Allow/disallow the usage of the network (cellular network and WiFi if available) to determine the current location |
void |
setAutoPan(boolean autoPan)
activate/deactivate the autoPan |
void |
setBearing(boolean bearing)
activate/deactivate the bearing representation. |
void |
setLocationListener(android.location.LocationListener locationListener)
|
void |
setOnSingleTapListener(OnSingleTapListener onSingleTapListener)
Sets a listener overriding the default behavior of a single tap on the LocationService symbol. |
void |
setSymbol(Symbol symbol)
|
void |
start()
Starts the LocationService. |
void |
stop()
Stops the LocationService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocationService(MapView map)
map - the MapView the location will be displayed on.| Method Detail |
|---|
public void start()
public void stop()
public android.location.Location getLocation()
Location.
public Point getPoint()
Point containing the coordinates.public Symbol getSymbol()
public void setOnSingleTapListener(OnSingleTapListener onSingleTapListener)
onSingleTapListener - the onSingleTapListener to setpublic OnSingleTapListener getOnSingleTapListener()
public boolean isBearingOn()
public boolean isStarted()
public boolean isAutoPan()
public android.location.LocationListener getLocationListener()
public void setLocationListener(android.location.LocationListener locationListener)
locationListener - the locationListener to setpublic void setAutoPan(boolean autoPan)
autoPan - the flag for the autoPan (default: true)public void setBearing(boolean bearing)
bearing - flag for the bearing (default: true)public void setSymbol(Symbol symbol)
symbol - the symbol to setpublic boolean isAllowNetworkLocation()
public void setAllowNetworkLocation(boolean allowNetworkLocation)
allowNetworkLocation - the flag for the usage of the network (default: true)public boolean isAccuracyCircleOn()
public void setAccuracyCircleOn(boolean accuracyCircleOn)
accuracyCircleOn - the accuracyCircleOn to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||