StreamAttachmentFactories

Provides different attachment factories that build custom message content based on a given attachment.

Functions

Link copied to clipboard
fun defaultFactories(getChatClient: () -> ChatClient = { ChatClient.instance() }, linkDescriptionMaxLines: Int = DEFAULT_LINK_DESCRIPTION_MAX_LINES, giphyInfoType: GiphyInfoType = GiphyInfoType.ORIGINAL, giphySizingMode: GiphySizingMode = GiphySizingMode.ADAPTIVE, contentScale: ContentScale = ContentScale.Crop, skipEnrichUrl: Boolean = false, onUploadContentItemClick: (Attachment, List<AttachmentPreviewHandler>) -> Unit = ::onFileUploadContentItemClick, onLinkContentItemClick: (context: Context, previewUrl: String) -> Unit = ::onLinkAttachmentContentClick, onGiphyContentItemClick: (context: Context, Url: String) -> Unit = ::onGiphyAttachmentContentClick, onMediaContentItemClick: (mediaGalleryPreviewLauncher: ManagedActivityResultLauncher<MediaGalleryPreviewContract.Input, MediaGalleryPreviewResult?>, message: Message, attachmentPosition: Int, videoThumbnailsEnabled: Boolean, downloadAttachmentUriGenerator: DownloadAttachmentUriGenerator, downloadRequestInterceptor: DownloadRequestInterceptor, streamCdnImageResizing: StreamCdnImageResizing, skipEnrichUrl: Boolean) -> Unit = ::onMediaAttachmentContentItemClick, showFileSize: (Attachment) -> Boolean = { true }, onFileContentItemClick: (previewHandlers: List<AttachmentPreviewHandler>, attachment: Attachment) -> Unit = ::onFileAttachmentContentItemClick, skipTypes: List<AttachmentFactory.Type> = emptyList()): List<AttachmentFactory>

Default attachment factories we provide, which can transform image, file and link attachments.

Link copied to clipboard

Default quoted attachment factories we provide, which can transform image, file and link attachments.