createAvatarBitmaps

open suspend fun createAvatarBitmaps(avatar: Avatar, @Px avatarSize: Int): Bitmap?

Creates a combined avatar Bitmap with the data model avatar and the specified avatarSize to represent the avatar image, in a suspending operation.

Return

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

Parameters

avatar

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

avatarSize

A specified avatar size.