DefaultBrazeImageLoader

class DefaultBrazeImageLoader(context: <Error class: unknown class>) : IBrazeImageLoader

Constructors

Link copied to clipboard
fun DefaultBrazeImageLoader(context: <Error class: unknown class>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun downloadBitmapFromUrl(context: <Error class: unknown class>, imageUri: <Error class: unknown class>, viewBounds: BrazeViewBounds? = BrazeViewBounds.NO_BOUNDS): <Error class: unknown class>?
Link copied to clipboard
fun getBitmapFromCache(key: String): <Error class: unknown class>?

Tries to get a bitmap first from memory cache, then from disk.

Link copied to clipboard
fun getBitmapFromDiskCache(key: String): <Error class: unknown class>?
Link copied to clipboard
fun getBitmapFromMemCache(key: String): <Error class: unknown class>?
Link copied to clipboard
fun getBitmapFromUrl(context: <Error class: unknown class>, imageUrl: String, viewBounds: BrazeViewBounds?): <Error class: unknown class>?
Link copied to clipboard
open override fun getInAppMessageBitmapFromUrl(context: <Error class: unknown class>, inAppMessage: IInAppMessage, imageUrl: String, viewBounds: BrazeViewBounds?): <Error class: unknown class>?

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
open override fun getPushBitmapFromUrl(context: <Error class: unknown class>, extras: <Error class: unknown class>?, imageUrl: String, viewBounds: BrazeViewBounds?): <Error class: unknown class>?

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
fun putBitmapIntoCache(key: String, bitmap: <Error class: unknown class>, skipDiskCache: Boolean)
Link copied to clipboard
open override fun renderUrlIntoCardView(context: <Error class: unknown class>, card: Card, imageUrl: String, imageView: <Error class: unknown class>, 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
open override fun renderUrlIntoInAppMessageView(context: <Error class: unknown class>, inAppMessage: IInAppMessage, imageUrl: String, imageView: <Error class: unknown class>, 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
open override fun setOffline(isOffline: Boolean)

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

Properties

Link copied to clipboard
Link copied to clipboard
val memoryCache: <Error class: unknown class><String, <Error class: unknown class>>