[android-components](../../../index.md) / [mozilla.components.browser.icons.processor](../../index.md) / [DiskIconProcessor](../index.md) / [ProcessorDiskCache](index.md) / [putIcon](./put-icon.md)

# putIcon

`abstract 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/processor/DiskIconProcessor.kt#L28)

Saves icon bitmap to cache.

