UnitDrawableDecoder

open class UnitDrawableDecoder : ResourceDecoder<T, Z>

Passes through a Drawable as a Drawable based Resource.

Functions

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