GeolocationPermissions.GetAllowed(String, IValueCallback) 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.
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.
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.