loadAvatarPlaceholderBitmap

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

Loads a Bitmap with the avatar to represent the placeholder of the avatar in a suspending operation. This method will be executed if the previous image request failed.

The loadAvatarPlaceholderBitmapBlocking method takes precedence over this one if both are implemented. Prefer implementing this method if possible.

Parameters

data

An image request model.

avatar

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

avatarSize

A specified avatar size.