public interface UnbluDownloadListener
Modifier and Type | Method and Description |
---|---|
void |
onDownloadStart(java.lang.String requestedUrl,
java.lang.String userAgent,
java.lang.String contentDisposition,
java.lang.String mimeType,
long contentLength,
java.lang.String cookies)
Triggered whenever a download is started.
|
default void |
onWebViewDestroy()
Called whenever the webView is destroyed.
|
default void |
onWebViewInitialize()
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)
android.webkit.DownloadListener
of android.webkit.WebView
s.
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 downloadeduserAgent
- 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()