AttachmentState

data class AttachmentState(    val message: Message,     val isMine: Boolean = false,     val onLongItemClick: (Message) -> Unit = {},     val onMediaGalleryPreviewResult: (MediaGalleryPreviewResult?) -> Unit = {})

Represents the state of Attachment items, used to render and add handlers required for the attachment to work.

Parameters

message

Data that represents the message information.

isMine

Flag that indicates if the message is from the current user.

onLongItemClick

Handler for a long click on the message item.

onMediaGalleryPreviewResult

Handler used when the user selects an action to perform from io.getstream.chat.android.compose.ui.attachments.preview.MediaGalleryPreviewActivity.

Constructors

Link copied to clipboard
constructor(message: Message, isMine: Boolean = false, onLongItemClick: (Message) -> Unit = {}, onMediaGalleryPreviewResult: (MediaGalleryPreviewResult?) -> Unit = {})

Properties

Link copied to clipboard
val isMine: Boolean = false
Link copied to clipboard
Link copied to clipboard