Added in API level 33
Geocoder.GeocodeListener
public
static
interface
Geocoder.GeocodeListener
android.location.Geocoder.GeocodeListener |
A listener for asynchronous geocoding results.
Summary
Public methods | |
---|---|
default
void
|
onError(String errorMessage)
Invoked when geocoding fails, with a brief error message. |
abstract
void
|
onGeocode(List<Address> addresses)
Invoked when geocoding completes successfully. |
Public methods
onError
Added in API level 33
public void onError (String errorMessage)
Invoked when geocoding fails, with a brief error message.
Parameters | |
---|---|
errorMessage |
String : This value may be null . |
onGeocode
Added in API level 33
public abstract void onGeocode (List<Address> addresses)
Invoked when geocoding completes successfully. May return an empty list.
Parameters | |
---|---|
addresses |
List : This value cannot be null . |