WebViewClient.OnReceivedHttpAuthRequest Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Notifica a la aplicación host que WebView recibió una solicitud de autenticación 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
Parámetros
- view
- WebView
WebView que está iniciando la devolución de llamada
- handler
- HttpAuthHandler
HttpAuthHandler usado para establecer la respuesta de WebView
- host
- String
el host que requiere autenticación
- realm
- String
el dominio kerberos para el que se requiere autenticación
- Atributos
Comentarios
Notifica a la aplicación host que WebView recibió una solicitud de autenticación HTTP. La aplicación host puede usar el proporcionado HttpAuthHandler
para establecer la respuesta de WebView en la solicitud. El comportamiento predeterminado es cancelar la solicitud.
<p class="note"><b>Note:</b> Se debe usar HttpAuthHandler proporcionado en el subproceso de la interfaz de usuario.
Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el proyecto de código y se usan según los términos descritos en la creative Commons 2.5.
Se aplica a
Consulte también
- <xref:Android.Webkit.WebView.GetHttpAuthUsernamePassword(System.String%2c+System.String)>