Decoder

interface Decoder

Converts a BufferedSource into a Drawable.

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

Functions

decode
Link copied to clipboard
abstract suspend fun decode(pool: BitmapPool, source: BufferedSource, size: Size, options: Options): DecodeResult

Decode source as a Drawable.

handles
Link copied to clipboard
abstract fun handles(source: BufferedSource, mimeType: String?): Boolean

Return true if this decoder supports decoding source.