DotNetBrowser  1.14
Public Member Functions | List of all members
DotNetBrowser.LoadHandler Interface Reference

Allows handling any load activity including filtering all URLs loaded in Browser component. Using LoadHandler you can cancel any load event or suppress problematic SSL certificates. More...

Inherited by DotNetBrowser.DefaultLoadHandler.

Public Member Functions

bool OnLoad (LoadParams loadParams)
 Invoked before native engine starts loading the URL defined in the DotNetBrowser.LoadParams.Url property. More...
 
bool CanNavigateOnBackspace ()
 Invoked when user press Backspace/Shift+Backspace keys to navigate backward/forward. Return true to allow backward/forward navigation. To suppress Backspace/Shift+Backspace keystrokes return false. Navigation on Backspace/Shift+Backspace is supported on Windows platform only. More...
 
bool OnCertificateError (CertificateErrorParams errorParams)
 Informs that a SSL certificate error has occurred. The passed errorParams object contains information about problematic SSL certificate. You can accept this SSL certificate and continue loading the resource. The SSL certificate will not be added to the list of trusted certificates. More...
 

Detailed Description

Allows handling any load activity including filtering all URLs loaded in Browser component. Using LoadHandler you can cancel any load event or suppress problematic SSL certificates.

Member Function Documentation

bool DotNetBrowser.LoadHandler.CanNavigateOnBackspace ( )

Invoked when user press Backspace/Shift+Backspace keys to navigate backward/forward. Return true to allow backward/forward navigation. To suppress Backspace/Shift+Backspace keystrokes return false. Navigation on Backspace/Shift+Backspace is supported on Windows platform only.

If this method throws exception, the Backspace/Shift+Backspace will work as expected.

Returns
false when Backspace/Shift+Backspace keystrokes must be ignored.

Implemented in DotNetBrowser.DefaultLoadHandler.

bool DotNetBrowser.LoadHandler.OnCertificateError ( CertificateErrorParams  errorParams)

Informs that a SSL certificate error has occurred. The passed errorParams object contains information about problematic SSL certificate. You can accept this SSL certificate and continue loading the 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.

Parameters
errorParamsprovides information about problematic SSL certificate.
Returns
true if loading must be canceled and false if you ignore SSL certificate error and want to load the required resource.

Implemented in DotNetBrowser.DefaultLoadHandler.

bool DotNetBrowser.LoadHandler.OnLoad ( LoadParams  loadParams)

Invoked before native engine starts loading the URL defined in the DotNetBrowser.LoadParams.Url property.

If this method throws exception, the loading will continue.

Parameters
loadParamsinformation about load event.
Returns
true if loading must be canceled.

Implemented in DotNetBrowser.DefaultLoadHandler.