AttachmentState

data class AttachmentState(val message: Message, 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.

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, onLongItemClick: (Message) -> Unit = {}, onMediaGalleryPreviewResult: (MediaGalleryPreviewResult?) -> Unit = {})

Properties

Link copied to clipboard
Link copied to clipboard