[android-components](../../index.md) / [mozilla.components.feature.downloads](../index.md) / [DownloadsFeature](index.md) / [onDownload](./on-download.md)

# onDownload

`fun onDownload(session: `[`Session`](../../mozilla.components.browser.session/-session/index.md)`, download: `[`Download`](../../mozilla.components.browser.session/-download/index.md)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/downloads/src/main/java/mozilla/components/feature/downloads/DownloadsFeature.kt#L82)

Overrides [Observer.onDownload](../../mozilla.components.browser.session/-session/-observer/on-download.md)

Notifies the [DownloadManager](../../mozilla.components.feature.downloads.manager/-download-manager/index.md) that a new download must be processed.

