android-components / mozilla.components.browser.icons.processor / MemoryIconProcessor

MemoryIconProcessor

class MemoryIconProcessor : IconProcessor (source)

An IconProcessor implementation that saves icons in the in-memory cache.

Types

Name Summary
ProcessorMemoryCache interface ProcessorMemoryCache

Constructors

Name Summary
<init> MemoryIconProcessor(cache: ProcessorMemoryCache)
An IconProcessor implementation that saves icons in the in-memory cache.

Functions

Name Summary
process fun process(context: <ERROR CLASS>, request: IconRequest, resource: Resource?, icon: Icon, desiredSize: DesiredSize): Icon

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.