public interface LoadHandler
LoadHandler
you can cancel any load event or suppress problematic SSL certificates.
Modifier and Type | Method and Description |
---|---|
boolean |
onCertificateError(CertificateErrorParams params)
Informs that SSL certificate error has occurred.
通知发生SSL证书错误。 |
boolean |
onLoad(LoadParams params)
Invoked before native engine starts loading the URL defined in the
在本机引擎开始加载LoadParams.getURL()方法中定义的URL之前调用。 LoadParams.getURL() method.
|
boolean onLoad(LoadParams params)
LoadParams.getURL()
method.
If this method throws exception, the loading will continue.
params
- information about load event.
-有关加载事件的信息。
true
if loading must be canceled.
是否必须取消加载。
boolean onCertificateError(CertificateErrorParams params)
params
object contains information about problematic SSL certificate. You can accept this SSL certificate and continue loading resource. The SSL certificate will not be added to the list of trusted certificates.
If this method throws exception, the SSL certificate error will be ignored and the required resource will be loaded.
params
- provides information about problematic SSL certificate.
-提供有关有问题的SSL证书的信息。
true
if loading must be canceled and
false
if you ignore SSL certificate error and want to load the required resource.
是否必须取消加载以及是否忽略SSL证书错误并想加载所需的资源。