Android Guides | Samples

Android.Locations.ILocationListener

Used for receiving notifications from the LocationManager when the location has changed.

See Also: ILocationListener

Syntax

[Android.Runtime.Register("android/location/LocationListener", "", "Android.Locations.ILocationListenerInvoker")]
public interface ILocationListener : IJavaObject, IDisposable

Remarks

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,Int64,Int64,Int64) method.

Developer Guides

For more information about identifying user location, read the Obtaining User Location developer guide.

[Android Documentation]

Requirements

Namespace: Android.Locations
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Locations.ILocationListener are listed below.

Public Methods

OnLocationChanged(Location)
Called when the location has changed.
OnProviderDisabled(String)
Called when the provider is disabled by the user.
OnProviderEnabled(String)
Called when the provider is enabled by the user.
OnStatusChanged(String, Availability, Bundle)
Called when the provider status changes.