getInAppMessageBitmapFromUrl

abstract fun getInAppMessageBitmapFromUrl(context: Context, inAppMessage: IInAppMessage, 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 will not be called from the UI thread.

Return

The bitmap representing the image located at the imageUrl.

Parameters

context

The application context.

inAppMessage

The IInAppMessage this image is being rendered for.

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.