public interface UnbluDownloadListener
|Modifier and Type||Method and Description|
Triggered whenever a download is started.
Called whenever the webView is destroyed.
Called whenever the webView is initialized.
void onDownloadStart(java.lang.String requestedUrl, java.lang.String userAgent, java.lang.String contentDisposition, java.lang.String mimeType, long contentLength, java.lang.String cookies)
MimeType and content disposition are may not present and an additional HEAD request has do be done to retrieve those information from the server.
requestedUrl- The full url to the content that should be downloaded
userAgent- the user agent to be used for the download.
contentDisposition- Content-disposition http header, if present.
mimeType- The mimeType of the content reported by the server.
cookies- The cookies used inside the WebView which are relevant for this request. They may have to be added to the request to have access to the file.
default void onWebViewInitialize()
default void onWebViewDestroy()