android-components / mozilla.components.browser.icons.utils / IconDiskCache


class IconDiskCache : LoaderDiskCache, PreparerDiskCache, ProcessorDiskCache (source)

Caching bitmaps and resource URLs on disk.


Name Summary
<init> IconDiskCache()
Caching bitmaps and resource URLs on disk.


Name Summary
getIconData fun getIconData(context: <ERROR CLASS>, resource: Resource): ByteArray?
getResources fun getResources(context: <ERROR CLASS>, request: IconRequest): List<Resource>
put fun put(context: <ERROR CLASS>, request: IconRequest, resource: Resource, icon: Icon): Unit

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.