[android-components](../index.md) / [mozilla.components.feature.downloads.manager](index.md) / [validatePermissionGranted](./validate-permission-granted.md)

# validatePermissionGranted

`fun `[`DownloadManager`](-download-manager/index.md)`.validatePermissionGranted(context: <ERROR CLASS>): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/downloads/src/main/java/mozilla/components/feature/downloads/manager/DownloadManager.kt#L42)