downloadBitmap

abstract suspend fun downloadBitmap(url: String): AdResult<Bitmap>

Loads an Bitmap from the passed URL.

This method can be used by the renderer to conveniently load images associated with your ad renderer. Using this method together with DriveCache, you can implement your own image repository for loading and caching images.

Return

The loaded image as a Bitmap object.

Parameters

url

The URL of the image to be loaded.

See also