-
- All Implemented Interfaces:
-
io.getstream.chat.android.compose.ui.attachments.preview.handler.AttachmentPreviewHandler
public final class MediaAttachmentPreviewHandler implements AttachmentPreviewHandler
Shows a preview for the audio/video stream in the attachment using Exoplayer library.
-
-
Constructor Summary
Constructors Constructor Description MediaAttachmentPreviewHandler(Context context)
-
Method Summary
Modifier and Type Method Description BooleancanHandle(Attachment attachment)Determines if the current preview handler is responsible for showing preview for the given attachment. UnithandleAttachmentPreview(Attachment attachment)Shows a preview for this attachment using the current preview handler. -
-
Constructor Detail
-
MediaAttachmentPreviewHandler
MediaAttachmentPreviewHandler(Context context)
-
-
Method Detail
-
canHandle
Boolean canHandle(Attachment attachment)
Determines if the current preview handler is responsible for showing preview for the given attachment.
- Parameters:
attachment- The attachment we want to show the preview for.
-
handleAttachmentPreview
Unit handleAttachmentPreview(Attachment attachment)
Shows a preview for this attachment using the current preview handler.
- Parameters:
attachment- The attachment we want to show the preview for.
-
-
-
-