GeolocationPermissions.GetAllowed(String, IValueCallback) Method

Definition

Gets the Geolocation permission state for the specified origin.

[Android.Runtime.Register("getAllowed", "(Ljava/lang/String;Landroid/webkit/ValueCallback;)V", "GetGetAllowed_Ljava_lang_String_Landroid_webkit_ValueCallback_Handler")]
public virtual void GetAllowed (string? origin, Android.Webkit.IValueCallback? callback);
[<Android.Runtime.Register("getAllowed", "(Ljava/lang/String;Landroid/webkit/ValueCallback;)V", "GetGetAllowed_Ljava_lang_String_Landroid_webkit_ValueCallback_Handler")>]
abstract member GetAllowed : string * Android.Webkit.IValueCallback -> unit
override this.GetAllowed : string * Android.Webkit.IValueCallback -> unit

Parameters

origin
String

the origin for which Geolocation permission is requested

callback
IValueCallback

a ValueCallback to receive the result of this request. This object's ValueCallback#onReceiveValue(T) onReceiveValue() method will be invoked asynchronously with a boolean indicating whether or not the origin can use the Geolocation API.

Attributes

Remarks

Gets the Geolocation permission state for the specified origin.

Java documentation for android.webkit.GeolocationPermissions.getAllowed(java.lang.String, android.webkit.ValueCallback<java.lang.Boolean>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to