LocationListener

Name Value
Assembly Catel.Core
Namespace Catel.Services
Available on Xamarin - Android
public class LocationListener : Thread

Base types Thread

A location listener.

Fields

Events

LocationChanged

Occurs when the location has changed.

StatusChanged

Occurs when the status has changed.

Methods

OnLocationChanged(Location location)

Called when the location has changed.

Parameters

Name Description
location The new location, as a Location object.

OnProviderDisabled(string provider)

Called when the provider is disabled by the user.

Parameters

Name Description
provider The name of the location provider associated with this update.

OnProviderEnabled(string provider)

Called when the provider is enabled by the user.

Parameters

Name Description
provider The name of the location provider associated with this update.

OnStatusChanged(string provider, Availability status, Bundle extras)

Called when the provider status changes.

Parameters

Name Description
provider The name of the location provider associated with this update.
status The status.
extras The extras.

Run()

Calls therun() method of the Runnable object the receiver holds.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion