Avatar

fun Avatar(data: List<Any?>, maxSectionSize: Int, avatarBorderWidth: Int, errorPlaceholder: Drawable?, onSuccess: (request: ImageRequest, metadata: ImageResult.Metadata) -> Unit, onError: (request: ImageRequest, throwable: Throwable) -> Unit)

Parameters

data

A list of image data.

maxSectionSize

The maximum section size of the avatar when loading multiple images.

avatarBorderWidth

The border width of AvatarView.

errorPlaceholder

An error placeholder that should be shown when request failed.