GeolocationPermissions.ICallback.Invoke(String, Boolean, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.