loadAvatarBitmapBlocking

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

Creates a Bitmap to represent an avatar image.

This method takes precedence over loadAvatarBitmap if both are implemented.

Override this method only if you can't provide a suspending implementation, otherwise override loadAvatarBitmap instead.

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.