Decoder

fun fun interface Decoder

A Decoder converts a SourceResult into a Drawable.

Use this interface to add support for custom file formats (e.g. GIF, SVG, TIFF, etc.).

Types

Factory
Link copied to clipboard
fun fun interface Factory

Functions

decode
Link copied to clipboard
abstract suspend fun decode(): DecodeResult?
Decode the SourceResult provided by Factory.create or return 'null' to delegate to the next Factory in the component registry.

Inheritors

BitmapFactoryDecoder
Link copied to clipboard