renderUrlIntoCardView

open override fun renderUrlIntoCardView(context: Context, card: Card, imageUrl: String, imageView: ImageView, viewBounds: BrazeViewBounds?)

Renders the image for a News Feed or Content Card at the imageUrl into the ImageView. If the image's bitmap is not already cached, the bitmap should be retrieved directly from the URL and the bitmap will be cached.

This method may be called from the UI thread.

Parameters

context

The application context.

card

The Card this image is being rendered for.

imageUrl

The url of the image to be rendered into the imageView.

imageView

The imageView object that will contain the image.

viewBounds

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