Package org.mozilla.geckoview
Interface WebExtension.DownloadDelegate
- Enclosing class:
- WebExtension
public static interface WebExtension.DownloadDelegate
-
Method Summary
Modifier and TypeMethodDescriptiondefault GeckoResult<WebExtension.DownloadInitData>
onDownload
(WebExtension source, WebExtension.DownloadRequest request) Method that is called when Web Extension requests a download (when downloads.download() is called in Web Extension)
-
Method Details
-
onDownload
@AnyThread @Nullable default GeckoResult<WebExtension.DownloadInitData> onDownload(@NonNull WebExtension source, @NonNull WebExtension.DownloadRequest request) Method that is called when Web Extension requests a download (when downloads.download() is called in Web Extension)- Parameters:
source
- - Web Extension that requested the downloadrequest
- - contains theWebRequest
and additional parameters for the request- Returns:
WebExtension.DownloadInitData
instance
-