WebClientListener

A listener for events that happen in WebClient

Functions

Link copied to clipboard
abstract fun onError(url: Uri?)

Is triggered when whole page could not be loaded (not triggered for css, js, ads & other errors)

Link copied to clipboard
abstract fun onForeignUrlEncountered(url: Uri, linkType: LinkType)

Triggered in the following situations:

Link copied to clipboard
abstract fun onRequestedFileDownload(url: Uri, fileName: String, mimetype: String?)

Triggered when opening a link pointing to a file, i.e. https://.pdf etc.

Link copied to clipboard
abstract fun onStartedLoading(url: Uri?)

Triggered when you call WebClient.load

Link copied to clipboard
abstract fun onSuccess(url: Uri?)

Triggered once when the page has finished loading