public interface ILocationWatcher
Modifier and Type | Method and Description |
---|---|
void |
locationUpdate(Location location)
Update the object on the device's current location.
|
void |
locationUpdatesEnded()
Location updates have ended.
|
void |
onError(int why,
java.lang.String description)
An error has occurred during use of the location hardware that has unavoidably stopped the
processing of further location data.
|
void |
onFailure(int why,
java.lang.String description)
An error has occurred when setting up the location hardware that cannot be overcome.
|
void locationUpdate(Location location)
location
- The currently valid Location
void locationUpdatesEnded()
void onError(int why, java.lang.String description)
locationUpdatesEnded()
will also be made, as
it is possible that one or more locationUpdate()
calls may have been made.why
- An int value corresponding to one of the error codes in ILocationManager
.description
- A String
coming from the OS that provides further error messages or info (optional, may be null).void onFailure(int why, java.lang.String description)
locationUpdate()
will have been made, locationUpdatesEnded()
will not be called.why
- An int value corresponding to one of the error codes in ILocationManager
.description
- A String
coming from the OS that provides further error messages or info (optional, may be null
).