put

abstract fun put(bitmap: Bitmap)

Adds the given android.graphics.Bitmap if it is eligible to be re-used and the pool can fit it, or calls recycle on the Bitmap and discards it.

Callers must not continue to use the Bitmap after calling this method.

See also

android.graphics.Bitmap#isMutable()
android.graphics.Bitmap#recycle()

Parameters

bitmap

The android.graphics.Bitmap to attempt to add.