public interface LoadHandler
LoadHandleryou can cancel any load event or suppress problematic SSL certificates.
|Modifier and Type||Method and Description|
Informs that SSL certificate error has occurred.
Invoked before native engine starts loading the URL defined in the
boolean onLoad(LoadParams params)
LoadParams.getURL()method. If this method throws exception, the loading will continue.
params- information about load event.
trueif loading must be canceled.
boolean onCertificateError(CertificateErrorParams params)
paramsobject 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.
trueif loading must be canceled and
falseif you ignore SSL certificate error and want to load the required resource.