BitmapDrawableResource

open class BitmapDrawableResource : DrawableResource<T> , Initializable

A com.bumptech.glide.load.engine.Resource that wraps an

This class ensures that every call to get} always returns a new to avoid rendering issues if used in multiple views and is also responsible for returning the underlying android.graphics.Bitmap to the given com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool when the resource is recycled.

Constructors

Link copied to clipboard
open fun BitmapDrawableResource(drawable: BitmapDrawable, bitmapPool: BitmapPool)

Functions

Link copied to clipboard
abstract fun get(): Z
fun get(): T
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 recycle()
Cleans up and recycles internal resources.