Sdílet prostřednictvím


GeolocationPermissions.ICallback.Invoke(String, Boolean, Boolean) Method

Definition

Sets the Geolocation permission state for the supplied origin.

[Android.Runtime.Register("invoke", "(Ljava/lang/String;ZZ)V", "GetInvoke_Ljava_lang_String_ZZHandler:Android.Webkit.GeolocationPermissions/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Invoke (string? origin, bool allow, bool retain);
[<Android.Runtime.Register("invoke", "(Ljava/lang/String;ZZ)V", "GetInvoke_Ljava_lang_String_ZZHandler:Android.Webkit.GeolocationPermissions/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Invoke : string * bool * bool -> unit

Parameters

origin
String

the origin for which permissions are set

allow
Boolean

whether or not the origin should be allowed to use the Geolocation API

retain
Boolean

whether the permission should be retained beyond the lifetime of a page currently being displayed by a WebView

Attributes

Remarks

Sets the Geolocation permission state for the supplied origin.

Java documentation for android.webkit.GeolocationPermissions.Callback.invoke(java.lang.String, boolean, 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