setBitmapWeakReference

open fun setBitmapWeakReference(@NonNull bitmap: @NonNull Bitmap)(source)

Sets the Bitmap to be held by this class in a WeakReference.

Any previously held Bitmap will be replaced. The Bitmap is stored in a static WeakReference, so this method will affect all parts of the application that use this class to access the Bitmap.

Parameters

bitmap

The Bitmap to be stored. Must not be null.