public interface LocationManager
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LocationManager.DisplayLocationListener
Listener to receive information about displaying a location.
|
static class |
LocationManager.DisplayLocationResult
Result codes for displaying locations on the map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
displayLocation(Routeable location,
java.lang.String title,
LocationManager.DisplayLocationListener listener)
Display a geographic location on the map.
|
void |
getCurrentLocation(Routeable.Listener listener)
Get the current GPS location.
|
void |
registerCurrentLocationListener(Routeable.Listener listener)
Register a listener to receive updates of the current location.
|
void |
unregisterCurrentLocationListener(Routeable.Listener listener)
Unregister a listener to receive updates of the current location.
|
void getCurrentLocation(Routeable.Listener listener)
listener - Routeable.Listener current location.java.lang.IllegalArgumentException - if the listener is null.void registerCurrentLocationListener(Routeable.Listener listener)
getCurrentLocation is used.listener - Routeable.Listener to receive information about the current location.java.lang.IllegalArgumentException - if the listener is null.void unregisterCurrentLocationListener(Routeable.Listener listener)
listener - The Routeable.Listener to unregister.java.lang.IllegalArgumentException - if the listener is null or previously not registered.void displayLocation(Routeable location, java.lang.String title, LocationManager.DisplayLocationListener listener)
location - The Routeable location to display.title - Title to display on the display location screen.listener - LocationManager.DisplayLocationListener to receive result of the calls.java.lang.IllegalArgumentException - if the listener is null.