Package coil.fetch

Types

DrawableResult
Link copied to clipboard
data class DrawableResult(drawable: Drawable, isSampled: Boolean, dataSource: DataSource) : FetchResult

A direct Drawable result. Return this from a Fetcher if its data cannot be converted into a BufferedSource.

Fetcher
Link copied to clipboard
interface Fetcher<T : Any>

A Fetcher translates data into either a BufferedSource or a Drawable.

FetchResult
Link copied to clipboard
sealed class FetchResult

The result of Fetcher.fetch.

SourceResult
Link copied to clipboard
data class SourceResult(source: BufferedSource, mimeType: String?, dataSource: DataSource) : FetchResult

A raw BufferedSource result, which will be consumed by the relevant Decoder.