|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LocationListener
Used for receiving notifications from the LocationManager when
the location has changed. These methods are called if the
LocationListener has been registered with the location manager service
using the LocationManager.requestLocationUpdates(String, long, float, LocationListener)
method.
| Method Summary | |
|---|---|
void |
onLocationChanged(Location location)
Called when the location has changed. |
void |
onProviderDisabled(String provider)
Called when the provider is disabled by the user. |
void |
onProviderEnabled(String provider)
Called when the provider is enabled by the user. |
void |
onStatusChanged(String provider,
int status,
Bundle extras)
Called when the provider status changes. |
| Method Detail |
|---|
void onLocationChanged(Location location)
There are no restrictions on the use of the supplied Location object.
location - The new location, as a Location object.
void onStatusChanged(String provider,
int status,
Bundle extras)
provider - the name of the location provider associated with this
update.status - LocationProvider.OUT_OF_SERVICE if the
provider is out of service, and this is not expected to change in the
near future; LocationProvider.TEMPORARILY_UNAVAILABLE if
the provider is temporarily unavailable but is expected to be available
shortly; and LocationProvider.AVAILABLE if the
provider is currently available.extras - an optional Bundle which will contain provider specific
status variables.
A number of common key/value pairs for the extras Bundle are listed below. Providers that use any of the keys on this list must provide the corresponding value as described below.
void onProviderEnabled(String provider)
provider - the name of the location provider associated with this
update.void onProviderDisabled(String provider)
provider - the name of the location provider associated with this
update.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||