[android-components](../../index.md) / [mozilla.components.browser.icons.utils](../index.md) / [IconDiskCache](index.md) / [putIcon](./put-icon.md)

# putIcon

`fun putIcon(context: <ERROR CLASS>, resource: `[`Resource`](../../mozilla.components.browser.icons/-icon-request/-resource/index.md)`, icon: `[`Icon`](../../mozilla.components.browser.icons/-icon/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/icons/src/main/java/mozilla/components/browser/icons/utils/IconDiskCache.kt#L83)

Overrides [ProcessorDiskCache.putIcon](../../mozilla.components.browser.icons.processor/-disk-icon-processor/-processor-disk-cache/put-icon.md)

Saves icon bitmap to cache.

