Android.Locations.LocationManager Members

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

See Also: Inherited members from Java.Lang.Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
GpsProviderstring. Name of the GPS location provider.
const
KeyLocationChangedstring. Key used for a Bundle extra holding a Location value when a location change is broadcast using a PendingIntent.
const
KeyProviderEnabledstring. Key used for a Bundle extra holding an Boolean status value when a provider enabled/disabled event is broadcast using a PendingIntent.
const
KeyProximityEnteringstring. Key used for the Bundle extra holding a boolean indicating whether a proximity alert is entering (true) or exiting (false).
const
KeyStatusChangedstring. Key used for a Bundle extra holding an Integer status value when a status change is broadcast using a PendingIntent.
const
ModeChangedActionstring. Broadcast intent action when NoType:android/provider/Settings$Secure;Href=../../../reference/android/provider/Settings.Secure.html#LOCATION_MODE changes.
const
NetworkProviderstring. Name of the network location provider.
const
PassiveProviderstring. A special location provider for receiving locations without actually initiating a location fix.
const
ProvidersChangedActionstring. Broadcast intent action when the configured location providers change.

Public Properties

[read-only]
AllProvidersIList<string>. Returns a list of the names of all known location providers.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AddGpsStatusListener(GpsStatus.IListener) : bool
Adds a GPS status listener.
AddNmeaListener(GpsStatus.INmeaListener) : bool
Adds an NMEA listener.
AddProximityAlert(double, double, float, long, Android.App.PendingIntent)
Set a proximity alert for the location given by the position (latitude, longitude) and the given radius.
AddTestProvider(string, bool, bool, bool, bool, bool, bool, bool, Power, Android.Hardware.SensorStatus)
Creates a mock location provider and adds it to the set of active providers.
ClearTestProviderEnabled(string)
Removes any mock enabled value associated with the given provider.
ClearTestProviderLocation(string)
Removes any mock location associated with the given provider.
ClearTestProviderStatus(string)
Removes any mock status values associated with the given provider.
static
FromContext(Android.Content.Context) : LocationManager
Documentation for this section has not yet been entered.
GetBestProvider(Criteria, bool) : string
Returns the name of the provider that best meets the given criteria.
GetGpsStatus(GpsStatus) : GpsStatus
Retrieves information about the current status of the GPS engine.
GetLastKnownLocation(string) : Location
Returns a Location indicating the data from the last known location fix obtained from the given provider.
GetProvider(string) : LocationProvider
Returns the information associated with the location provider of the given name, or null if no provider exists by that name.
GetProviders(bool) : IList<string>
Returns a list of the names of location providers.
GetProviders(Criteria, bool) : IList<string>
Returns a list of the names of LocationProviders that satisfy the given criteria, or null if none do.
IsProviderEnabled(string) : bool
Returns the current enabled/disabled status of the given provider.
RemoveGpsStatusListener(GpsStatus.IListener)
Removes a GPS status listener.
RemoveNmeaListener(GpsStatus.INmeaListener)
Removes an NMEA listener.
RemoveProximityAlert(Android.App.PendingIntent)
Removes the proximity alert with the given PendingIntent.
RemoveTestProvider(string)
Removes the mock location provider with the given name.
RemoveUpdates(Android.App.PendingIntent)
Removes all location updates for the specified pending intent.
RemoveUpdates(ILocationListener)
Removes all location updates for the specified LocationListener.
RequestLocationUpdates(long, float, Criteria, Android.App.PendingIntent)
Register for location updates using a Criteria and pending intent.
RequestLocationUpdates(string, long, float, Android.App.PendingIntent)
Register for location updates using the named provider, and a pending intent.
RequestLocationUpdates(string, long, float, ILocationListener)
Register for location updates using the named provider, and a pending intent.
RequestLocationUpdates(long, float, Criteria, ILocationListener, Android.OS.Looper)
Register for location updates using a Criteria, and a callback on the specified looper thread.
RequestLocationUpdates(string, long, float, ILocationListener, Android.OS.Looper)
Register for location updates using the named provider, and a callback on the specified looper thread.
RequestSingleUpdate(Criteria, Android.App.PendingIntent)
Register for a single location update using a Criteria and pending intent.
RequestSingleUpdate(string, Android.App.PendingIntent)
Register for a single location update using a named provider and pending intent.
RequestSingleUpdate(Criteria, ILocationListener, Android.OS.Looper)
Register for a single location update using a Criteria and a callback.
RequestSingleUpdate(string, ILocationListener, Android.OS.Looper)
Register for a single location update using the named provider and a callback.
SendExtraCommand(string, string, Android.OS.Bundle) : bool
Sends additional commands to a location provider.
SetTestProviderEnabled(string, bool)
Sets a mock enabled value for the given provider.
SetTestProviderLocation(string, Location)
Sets a mock location for the given provider.
SetTestProviderStatus(string, Availability, Android.OS.Bundle, long)
Sets mock status values for the given provider.