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

DiskIconLoader

class DiskIconLoader : IconLoader (source)

IconLoader implementation that loads icons from a disk cache.

Types

Name Summary
LoaderDiskCache interface LoaderDiskCache

Constructors

Name Summary
<init> DiskIconLoader(cache: LoaderDiskCache)
IconLoader implementation that loads icons from a disk 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.