Partager via


SslErrorHandler.Cancel Method

Definition

Instructs the WebView that encountered the SSL certificate error to terminate communication with the server.

[Android.Runtime.Register("cancel", "()V", "GetCancelHandler")]
public virtual void Cancel ();
[<Android.Runtime.Register("cancel", "()V", "GetCancelHandler")>]
abstract member Cancel : unit -> unit
override this.Cancel : unit -> unit
Attributes

Remarks

Instructs the WebView that encountered the SSL certificate error to terminate communication with the server. Cancels the current server request and all pending requests for the WebView.

The host application must call this method to prevent a resource from loading when an SSL certificate is invalid.

Java documentation for android.webkit.SslErrorHandler.cancel().

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