android-components / mozilla.components.browser.icons / BrowserIcons / <init>

<init>

BrowserIcons(context: <ERROR CLASS>, httpClient: Client, generator: IconGenerator = DefaultIconGenerator(), preparers: List<IconPreprarer> = listOf( TippyTopIconPreparer(context.assets), MemoryIconPreparer(sharedMemoryCache), DiskIconPreparer(sharedDiskCache) ), loaders: List<IconLoader> = listOf( MemoryIconLoader(sharedMemoryCache), DiskIconLoader(sharedDiskCache), HttpIconLoader(httpClient), DataUriIconLoader() ), decoders: List<IconDecoder> = listOf( AndroidIconDecoder(), ICOIconDecoder() ), processors: List<IconProcessor> = listOf( MemoryIconProcessor(sharedMemoryCache), DiskIconProcessor(sharedDiskCache) ), jobDispatcher: CoroutineDispatcher = Executors.newFixedThreadPool(THREADS).asCoroutineDispatcher())

Entry point for loading icons for websites.

Parameters

generator - The IconGenerator to generate an icon if no icon could be loaded.

decoders - List of IconDecoder instances to use when decoding a loaded icon into a android.graphics.Bitmap.