Android.Locations.LocationManager.GetProvider Method
Returns the information associated with the location provider of the given name, or null if no provider exists by that name.

Syntax

[Android.Runtime.Register("getProvider", "(Ljava/lang/String;)Landroid/location/LocationProvider;", "GetGetProvider_Ljava_lang_String_Handler")]
public virtual LocationProvider GetProvider (string name)

Parameters

name
the provider name

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif name is null or does not exist
Java.Lang.SecurityExceptionif the caller is not permitted to access the given provider.

Remarks

Returns the information associated with the location provider of the given name, or null if no provider exists by that name.

[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