getPushBitmapFromUrl

open override fun getPushBitmapFromUrl(context: Context, extras: Bundle?, imageUrl: String, viewBounds: BrazeViewBounds?): Bitmap?

Attempts to retrieve the bitmap representing the imageUrl's image from the imageLoader's caches. If no such bitmap is cached, the bitmap will be retrieved directly from the URL and the bitmap will be cached.

This method is blocking and thus may will not be called from the UI thread.

Return

The bitmap representing the image located at the imageUrl.

Parameters

context

The application context.

extras

Any custom KVP 'extras' associated with the push notification as provided by the client.

imageUrl

The url of the image whose bitmap is being retrieved.

viewBounds

The bounds for the destination view. If null, no remote bitmap sampling will occur.