android-components / mozilla.components.browser.icons.preparer / MemoryIconPreparer

MemoryIconPreparer

class MemoryIconPreparer : IconPreprarer (source)

An IconPreprarer implementation that will add known resource URLs (from an in-memory cache) to the request if the request doesn’t contain a list of resources yet.

Types

Name Summary
PreparerMemoryCache interface PreparerMemoryCache

Constructors

Name Summary
<init> MemoryIconPreparer(cache: PreparerMemoryCache)
An IconPreprarer implementation that will add known resource URLs (from an in-memory cache) to the request if the request doesn’t contain a list of resources yet.

Functions

Name Summary
prepare fun prepare(context: <ERROR CLASS>, request: IconRequest): IconRequest

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.