BitmapDrawableDecoder

open class BitmapDrawableDecoder<DataType> : ResourceDecoder<T, Z>

Decodes an android.graphics.drawable.BitmapDrawable for a data type.

Parameters

<DataType>

The type of data that will be decoded.

Constructors

Link copied to clipboard
open fun BitmapDrawableDecoder(context: Context, decoder: ResourceDecoder<DataType, Bitmap>)
Link copied to clipboard
open fun BitmapDrawableDecoder(    resources: Resources,     bitmapPool: BitmapPool,     decoder: ResourceDecoder<DataType, Bitmap>)
Link copied to clipboard
open fun BitmapDrawableDecoder(resources: Resources, decoder: ResourceDecoder<DataType, Bitmap>)

Functions

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