LazyBitmapDrawableResource

class LazyBitmapDrawableResource : Resource<Z> , Initializable

Lazily allocates a android.graphics.drawable.BitmapDrawable from a given on the first call to get.

Functions

Link copied to clipboard
open fun get(): BitmapDrawable
Returns an instance of the wrapped resource.
Link copied to clipboard
open fun getResourceClass(): Class<BitmapDrawable>
Returns the Class of the wrapped resource.
Link copied to clipboard
open fun getSize(): Int
Returns the size in bytes of the wrapped resource to use to determine how much of the memory cache this resource uses.
Link copied to clipboard
open fun initialize()
Called on a background thread so the Resource can do some eager initialization.
Link copied to clipboard
open fun obtain(context: Context, bitmap: Bitmap): LazyBitmapDrawableResource
open fun obtain(resources: Resources, bitmapResource: Resource<Bitmap>): Resource<BitmapDrawable>
open fun obtain(    resources: Resources,     bitmapPool: BitmapPool,     bitmap: Bitmap): LazyBitmapDrawableResource
Link copied to clipboard
open fun recycle()
Cleans up and recycles internal resources.