Package com.indooratlas.android.sdk
Interface IALocationListener
-
- All Known Implementing Classes:
IALocationListenerSupport
public interface IALocationListenerUsed for receiving locations from theIALocationManagerwhen 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 voidonLocationChanged(IALocation location)Called when the location has changed.voidonStatusChanged(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
.locationobject- Parameters:
location- the new location
-
onStatusChanged
void onStatusChanged(String provider, int status, Bundle extras)
Called when provider status changes.- Parameters:
provider- alwaysIndoorAtlasstatus- current status of the service, seeIALocationManagerforSTATUS_XXXconstantsextras- an optional Bundle which contains extra status variables
-
-