-
public final class AttachmentStateRepresents the state of Attachment items, used to render and add handlers required for the attachment to work.
-
-
Field Summary
Fields Modifier and Type Field Description private final Messagemessageprivate final BooleanisMineprivate final Function1<Message, Unit>onLongItemClickprivate final Function1<MediaGalleryPreviewResult, Unit>onMediaGalleryPreviewResult
-
Constructor Summary
Constructors Constructor Description AttachmentState(Message message, Boolean isMine, Function1<Message, Unit> onLongItemClick, Function1<MediaGalleryPreviewResult, Unit> onMediaGalleryPreviewResult)
-
Method Summary
Modifier and Type Method Description final MessagegetMessage()final BooleangetIsMine()final Function1<Message, Unit>getOnLongItemClick()final Function1<MediaGalleryPreviewResult, Unit>getOnMediaGalleryPreviewResult()-
-
Constructor Detail
-
AttachmentState
AttachmentState(Message message, Boolean isMine, Function1<Message, Unit> onLongItemClick, Function1<MediaGalleryPreviewResult, Unit> onMediaGalleryPreviewResult)
- 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.
-
-
Method Detail
-
getMessage
final Message getMessage()
-
getOnLongItemClick
final Function1<Message, Unit> getOnLongItemClick()
-
getOnMediaGalleryPreviewResult
final Function1<MediaGalleryPreviewResult, Unit> getOnMediaGalleryPreviewResult()
-
-
-
-