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


class IconMemoryCache : ProcessorMemoryCache, LoaderMemoryCache, PreparerMemoryCache (source)


Name Summary
<init> IconMemoryCache()


Name Summary
getBitmap fun getBitmap(request: IconRequest, resource: Resource): <ERROR CLASS>?
getResources fun getResources(request: IconRequest): List<Resource>
put fun put(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.