ResourceDecoder

interface ResourceDecoder<T, Z>

An interface for decoding resources.

Parameters

<T>

The type the resource will be decoded from (File, InputStream etc).

<Z>

The type of the decoded resource (Bitmap, Drawable etc).

Functions

Link copied to clipboard
abstract fun decode(    source: T,     width: Int,     height: Int,     options: Options): Resource<Z>
Returns a decoded resource from the given data or null if no resource could be decoded.
Link copied to clipboard
abstract fun handles(source: T, options: Options): Boolean
Returns true if this decoder is capable of decoding the given source with the given options, and false otherwise.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard