Android.Webkit.WebViewClient.OnReceivedHttpAuthRequest Method
Notifies the host application that the WebView received an HTTP authentication request.

Syntax

[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 (WebView view, HttpAuthHandler handler, string host, string realm)

See Also

WebView.GetHttpAuthUsernamePassword(string, System.String)

Parameters

view
the WebView that is initiating the callback
handler
the HttpAuthHandler used to set the WebView's response
host
the host requiring authentication
realm
the realm for which authentication is required

Remarks

Notifies the host application that the WebView received an HTTP authentication request. The host application can use the supplied Android.Webkit.HttpAuthHandler to set the WebView's response to the request. The default behavior is to cancel the request.

[Android Documentation]

Requirements

Namespace: Android.Webkit
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1