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

DiskIconPreparer

class DiskIconPreparer : IconPreprarer (source)

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

Types

Name Summary
PreparerDiskCache interface PreparerDiskCache

Constructors

Name Summary
<init> DiskIconPreparer(cache: PreparerDiskCache)
IconPreprarer implementation implementation that will add known resource URLs (from a disk 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.