Avatar
data class Avatar(data: List<Any?>, maxSectionSize: Int, avatarBorderWidth: Int, errorPlaceholder: Drawable?, onSuccess: (request: ImageRequest, metadata: ImageResult.Metadata) -> Unit, onError: (request: ImageRequest, throwable: Throwable) -> Unit)
Content copied to clipboard
A data transfer model for transferring image data to AvatarFetcher. This model will be fetched by AvatarFetcher when we request image loading by using this type to Coil.
The default supported data types are:
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.