Google is committed to advancing racial equity for Black communities. See how.
Added in API level 1

SslErrorHandler

open class SslErrorHandler : Handler
kotlin.Any
   ↳ android.os.Handler
   ↳ android.webkit.SslErrorHandler

Represents a request for handling an SSL error. Instances of this class are created by the WebView and passed to WebViewClient#onReceivedSslError. The host application must call either proceed or cancel to set the WebView's response to the request.

Summary

Public methods

open Unit

Cancel this request and all pending requests for the WebView that had the error.

open Unit

Proceed with the SSL certificate.

Inherited functions

Public methods

cancel

Added in API level 1
open fun cancel(): Unit

Cancel this request and all pending requests for the WebView that had the error.

proceed

Added in API level 1
open fun proceed(): Unit

Proceed with the SSL certificate.

It is not recommended to proceed past SSL errors and this method should generally not be used; see WebViewClient#onReceivedSslError for more information.