WebViewClient.OnReceivedHttpAuthRequest 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.
Notifies the host application that the WebView received an HTTP authentication request.
[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
Parameters
- view
- WebView
the WebView that is initiating the callback
- handler
- HttpAuthHandler
the HttpAuthHandler used to set the WebView's response
- host
- String
the host requiring authentication
- realm
- String
the realm for which authentication is required
- Attributes
Remarks
Notifies the host application that the WebView received an HTTP authentication request. The host application can use the supplied HttpAuthHandler
to set the WebView's response to the request. The default behavior is to cancel the request.
<p class="note"><b>Note:</b> The supplied HttpAuthHandler must be used on the UI thread.
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.
Applies to
See also
- <xref:Android.Webkit.WebView.GetHttpAuthUsernamePassword(System.String%2c+System.String)>