WebChromeClient.OnGeolocationPermissionsShowPrompt Method

Definition

Notify the host application that web content from the specified origin is attempting to use the Geolocation API, but no permission state is currently set for that origin.

[Android.Runtime.Register("onGeolocationPermissionsShowPrompt", "(Ljava/lang/String;Landroid/webkit/GeolocationPermissions$Callback;)V", "GetOnGeolocationPermissionsShowPrompt_Ljava_lang_String_Landroid_webkit_GeolocationPermissions_Callback_Handler")]
public virtual void OnGeolocationPermissionsShowPrompt (string? origin, Android.Webkit.GeolocationPermissions.ICallback? callback);
[<Android.Runtime.Register("onGeolocationPermissionsShowPrompt", "(Ljava/lang/String;Landroid/webkit/GeolocationPermissions$Callback;)V", "GetOnGeolocationPermissionsShowPrompt_Ljava_lang_String_Landroid_webkit_GeolocationPermissions_Callback_Handler")>]
abstract member OnGeolocationPermissionsShowPrompt : string * Android.Webkit.GeolocationPermissions.ICallback -> unit
override this.OnGeolocationPermissionsShowPrompt : string * Android.Webkit.GeolocationPermissions.ICallback -> unit

Parameters

origin
String

The origin of the web content attempting to use the Geolocation API.

callback
GeolocationPermissions.ICallback

The callback to use to set the permission state for the origin.

Attributes

Remarks

Java documentation for android.webkit.WebChromeClient.onGeolocationPermissionsShowPrompt(java.lang.String, android.webkit.Callback).

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