StreamAttachmentFactories

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

Functions

Link copied to clipboard
fun defaultFactories(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, streamCdnImageResizing: StreamCdnImageResizing, skipEnrichUrl: Boolean) -> Unit = ::onMediaAttachmentContentItemClick, onFileContentItemClick: (previewHandlers: List<AttachmentPreviewHandler>, attachment: Attachment) -> Unit = ::onFileAttachmentContentItemClick): 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.