WebViewClient.OnReceivedHttpAuthRequest Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Avertit l’application hôte que le WebView a reçu une demande d’authentification HTTP.
[Android.Runtime.Register("onReceivedHttpAuthRequest", "(Landroid/webkit/WebView;Landroid/webkit/HttpAuthHandler;Ljava/lang/String;Ljava/lang/String;)V", "GetOnReceivedHttpAuthRequest_Landroid_webkit_WebView_Landroid_webkit_HttpAuthHandler_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual void OnReceivedHttpAuthRequest(Android.Webkit.WebView? view, Android.Webkit.HttpAuthHandler? handler, string? host, string? realm);
[<Android.Runtime.Register("onReceivedHttpAuthRequest", "(Landroid/webkit/WebView;Landroid/webkit/HttpAuthHandler;Ljava/lang/String;Ljava/lang/String;)V", "GetOnReceivedHttpAuthRequest_Landroid_webkit_WebView_Landroid_webkit_HttpAuthHandler_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member OnReceivedHttpAuthRequest : Android.Webkit.WebView * Android.Webkit.HttpAuthHandler * string * string -> unit
override this.OnReceivedHttpAuthRequest : Android.Webkit.WebView * Android.Webkit.HttpAuthHandler * string * string -> unit
Paramètres
- view
- WebView
WebView qui lance le rappel
- handler
- HttpAuthHandler
HttpAuthHandler utilisé pour définir la réponse de WebView
- host
- String
l’hôte nécessitant une authentification
- realm
- String
domaine pour lequel l’authentification est requise
- Attributs
Remarques
Avertit l’application hôte que le WebView a reçu une demande d’authentification HTTP. L’application hôte peut utiliser l’élément fourni HttpAuthHandler pour définir la réponse de WebView à la demande. Le comportement par défaut consiste à annuler la requête.
<b>Remarque :</b> Le httpAuthHandler fourni doit être utilisé sur le thread d’interface utilisateur.
Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.
S’applique à
Voir aussi
- <xref:Android.Webkit.WebView.GetHttpAuthUsernamePassword(System.String%2c+System.String)>