Android.Locations.LocationManager.RequestSingleUpdate Method
Register for a single location update using a named provider and pending intent.

Syntax

[Android.Runtime.Register("requestSingleUpdate", "(Ljava/lang/String;Landroid/app/PendingIntent;)V", "GetRequestSingleUpdate_Ljava_lang_String_Landroid_app_PendingIntent_Handler")]
public virtual void RequestSingleUpdate (string provider, Android.App.PendingIntent intent)

Parameters

provider
the name of the provider with which to register
intent
a Android.App.PendingIntent to be sent for the location update

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif provider is null or doesn't exist
Java.Lang.IllegalArgumentExceptionif intent is null
Java.Lang.SecurityExceptionif no suitable permission is present

Remarks

Register for a single location update using a named provider and pending intent.

See LocationManager.RequestLocationUpdates(long, System.Single, System.Single, System.Single) for more detail on how to use this method.

[Android Documentation]

Requirements

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