IBrazeImageLoader

Functions

Link copied to clipboard
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.

Link copied to clipboard
abstract 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.

Link copied to clipboard
abstract 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.

Link copied to clipboard
abstract fun renderUrlIntoInAppMessageView(context: Context, inAppMessage: IInAppMessage, imageUrl: String, imageView: ImageView, viewBounds: BrazeViewBounds?)

Renders the image for an IInAppMessage 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.

Link copied to clipboard
abstract fun setOffline(isOffline: Boolean)

Set this image loader offline. In offline mode, the image loader should only load locally cached images.