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

IconMemoryCache

class IconMemoryCache : ProcessorMemoryCache, LoaderMemoryCache, PreparerMemoryCache (source)

Constructors

Name Summary
<init> IconMemoryCache()

Functions

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.