Langue

GeolocationPermissions.GetAllowed(String, IValueCallback) Méthode

Définition

Obtient l’état d’autorisation de géolocalisation pour l’origine spécifiée.

[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

Paramètres

origin
String

origine pour laquelle l’autorisation de géolocalisation est demandée

callback
IValueCallback

a ValueCallback pour recevoir le résultat de cette demande. Cet objet ValueCallback#onReceiveValue(T) onReceiveValue() la méthode est appelée de façon asynchrone avec une valeur booléenne indiquant si l’origine peut utiliser l’API de géolocalisation.

Attributs

Remarques

Obtient l’état d’autorisation de géolocalisation pour l’origine spécifiée.

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

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à