Fetcher

fun interface Fetcher

A Fetcher translates data into either an ImageSource or a Drawable.

To accomplish this, fetchers fit into one of two types:

Types

Link copied to clipboard
fun interface Factory<T : Any>

Functions

Link copied to clipboard
abstract suspend fun fetch(): FetchResult?

Fetch the data provided by Factory.create or return 'null' to delegate to the next Factory in the component registry.