loadAvatarBitmap

open suspend fun loadAvatarBitmap(data: Any?, avatar: Avatar, @Px avatarSize: Int): Bitmap?

Loads a Bitmap with the image request data to represent the avatar in a suspending operation.

This method requests images by using the ImageLoader on an IO coroutines scope. The loadAvatarBitmapBlocking method takes precedence over this one if both are implemented. Prefer implementing this method if possible.

Return

The loaded bitmap or null if the loading failed (e.g. network issues).

Parameters

data

An image request model.

avatar

An Avatar data model which includes request model and avatar styles.

avatarSize

A specified avatar size.