android-components / mozilla.components.feature.downloads / DownloadDialogFragment / onStartDownload

onStartDownload

var onStartDownload: () -> Unit (source)

A callback to trigger a download, call it when you are ready to start a download. For instance, a valid use case can be in confirmation dialog, after the positive button is clicked, this callback must be called.