public interface LocationProvider
| Modifier and Type | Method and Description |
|---|---|
void |
clearLocationListeners()
Remove all listeners for location updates.
|
Location |
getCurrentLocation()
Request the current (or last) known location.
|
void |
registerLocationListener(LocationListener locationListener)
Register a listener for location updates.
|
void |
start()
Start the process of acquiring location updates.
|
void |
stop()
Stop the process of acquiring location updates.
|
void |
unregisterLocationListener(LocationListener locationListener)
Unregister a listener for location updates.
|
Location getCurrentLocation()
void start()
void stop()
void registerLocationListener(LocationListener locationListener)
locationListener - void unregisterLocationListener(LocationListener locationListener)
locationListener - void clearLocationListeners()