WebViewClient.OnTooManyRedirects(WebView, Message, Message) Method

Definition

Caution

deprecated

Notify the host application that there have been an excessive number of HTTP redirects.

[Android.Runtime.Register("onTooManyRedirects", "(Landroid/webkit/WebView;Landroid/os/Message;Landroid/os/Message;)V", "GetOnTooManyRedirects_Landroid_webkit_WebView_Landroid_os_Message_Landroid_os_Message_Handler")]
[System.Obsolete("deprecated")]
public virtual void OnTooManyRedirects (Android.Webkit.WebView? view, Android.OS.Message? cancelMsg, Android.OS.Message? continueMsg);
[<Android.Runtime.Register("onTooManyRedirects", "(Landroid/webkit/WebView;Landroid/os/Message;Landroid/os/Message;)V", "GetOnTooManyRedirects_Landroid_webkit_WebView_Landroid_os_Message_Landroid_os_Message_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member OnTooManyRedirects : Android.Webkit.WebView * Android.OS.Message * Android.OS.Message -> unit
override this.OnTooManyRedirects : Android.Webkit.WebView * Android.OS.Message * Android.OS.Message -> unit

Parameters

view
WebView

The WebView that is initiating the callback.

cancelMsg
Message

The message to send if the host wants to cancel

continueMsg
Message

The message to send if the host wants to continue

Attributes

Remarks

Notify the host application that there have been an excessive number of HTTP redirects. As the host application if it would like to continue trying to load the resource. The default behavior is to send the cancel message.

This member is deprecated. This method is no longer called. When the WebView encounters a redirect loop, it will cancel the load.

Java documentation for android.webkit.WebViewClient.onTooManyRedirects(android.webkit.WebView, android.os.Message, android.os.Message).

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