android-components / mozilla.components.browser.icons.loader / MemoryIconLoader

MemoryIconLoader

class MemoryIconLoader : IconLoader (source)

An IconLoader implementation that loads icons from an in-memory cache.

Types

Name Summary
LoaderMemoryCache interface LoaderMemoryCache

Constructors

Name Summary
<init> MemoryIconLoader(cache: LoaderMemoryCache)
An IconLoader implementation that loads icons from an in-memory cache.

Functions

Name Summary
load fun load(context: <ERROR CLASS>, request: IconRequest, resource: Resource): Result
Tries to load the IconRequest.Resource for the given 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.