Package-level declarations

Types

Link copied to clipboard
class AudioRecordAttachmentFactory(viewModelFactory: AudioPlayerViewModelFactory, getCurrentUserId: () -> String?) : AttachmentFactory

An AttachmentFactory that will be used if no other AttachmentFactory can handle the attachments.

Link copied to clipboard
class FileAttachmentFactory(showFileSize: (Attachment) -> Boolean = { true }, onContentItemClick: (previewHandlers: List<AttachmentPreviewHandler>, attachment: Attachment) -> Unit = ::onFileAttachmentContentItemClick) : AttachmentFactory

An AttachmentFactory that validates attachments as files and uses FileAttachmentContent to build the UI for the message.

Link copied to clipboard
class GiphyAttachmentFactory(giphyInfoType: GiphyInfoType = GiphyInfoType.FIXED_HEIGHT_DOWNSAMPLED, giphySizingMode: GiphySizingMode = GiphySizingMode.ADAPTIVE, contentScale: ContentScale = ContentScale.Crop, onContentItemClick: (context: Context, Url: String) -> Unit = ::onGiphyAttachmentContentClick) : AttachmentFactory

An AttachmentFactory that validates and shows Giphy attachments using GiphyAttachmentContent.

Link copied to clipboard
class LinkAttachmentFactory(linkDescriptionMaxLines: Int, onContentItemClick: (context: Context, previewUrl: String) -> Unit = ::onLinkAttachmentContentClick) : AttachmentFactory

An AttachmentFactory that validates attachments as images and uses LinkAttachmentContent to build the UI for the message.

Link copied to clipboard
class MediaAttachmentFactory(maximumNumberOfPreviewedItems: Int = 4, skipEnrichUrl: Boolean = false, onContentItemClick: (mediaGalleryPreviewLauncher: ManagedActivityResultLauncher<MediaGalleryPreviewContract.Input, MediaGalleryPreviewResult?>, message: Message, attachmentPosition: Int, videoThumbnailsEnabled: Boolean, downloadAttachmentUriGenerator: DownloadAttachmentUriGenerator, downloadRequestInterceptor: DownloadRequestInterceptor, streamCdnImageResizing: StreamCdnImageResizing, skipEnrichUrl: Boolean) -> Unit = ::onMediaAttachmentContentItemClick, itemOverlayContent: @Composable (attachmentType: String?) -> Unit = { attachmentType -> if (attachmentType == AttachmentType.VIDEO) { DefaultItemOverlayContent() } }, previewItemOverlayContent: @Composable (attachmentType: String?) -> Unit = { attachmentType -> if (attachmentType == AttachmentType.VIDEO) { DefaultPreviewItemOverlayContent() } }) : AttachmentFactory

An AttachmentFactory that is able to handle Image and Video attachments.

Link copied to clipboard

An AttachmentFactory that validates attachments as files and uses MediaAttachmentQuotedContent in case the attachment is a media attachment or FileAttachmentQuotedContent in case the attachment is a file to build the UI for the quoted message.

Link copied to clipboard

An AttachmentFactory that will be used if no other AttachmentFactory can handle the attachments.

Link copied to clipboard
class UploadAttachmentFactory(onContentItemClick: (Attachment, List<AttachmentPreviewHandler>) -> Unit = ::onFileUploadContentItemClick) : AttachmentFactory

An AttachmentFactory that validates and shows uploading attachments using FileUploadContent. Has no "preview content", given that this attachment only exists after being sent.