Package com.indooratlas.android.sdk
Interface IALocationListener
-
- All Known Implementing Classes:
IALocationListenerSupport
public interface IALocationListener
Used for receiving locations from theIALocationManager
when location has changed.Sample usage:
mLocationListener = new IALocationListener() { public void onLocationChanged(IALocation location) { // handle location change } public void onStatusChanged(String provider, int status, Bundle extras) { // handle service status change } } mLocationManager.requestLocationUpdates(IALocationRequest.create(), mLocationListener);
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onLocationChanged(IALocation location)
Called when the location has changed.void
onStatusChanged(String provider, int status, Bundle extras)
Called when provider status changes.
-
-
-
Method Detail
-
onLocationChanged
void onLocationChanged(IALocation location)
Called when the location has changed.There are no restrictions on the use of the supplied
.location
object- Parameters:
location
- the new location
-
onStatusChanged
void onStatusChanged(String provider, int status, Bundle extras)
Called when provider status changes.- Parameters:
provider
- alwaysIndoorAtlas
status
- current status of the service, seeIALocationManager
forSTATUS_XXX
constantsextras
- an optional Bundle which contains extra status variables
-
-