Package-level declarations

Types

Link copied to clipboard

Data class that holds information about a giphy attachment click event.

Link copied to clipboard

Data class that holds information about a link attachment click event.

Link copied to clipboard

Data class that holds all the information required to handle media attachment clicks.

Functions

Link copied to clipboard
fun AudioRecordAttachmentContent(modifier: Modifier = Modifier, attachmentState: AttachmentState, viewModelFactory: AudioPlayerViewModelFactory)

Represents the audio recording attachment content.

Link copied to clipboard
fun AudioRecordAttachmentContentItem(modifier: Modifier = Modifier, attachment: Attachment, playerState: AudioPlayerState, isMine: Boolean = false, onPlayToggleClick: (Attachment) -> Unit = {}, onPlaySpeedClick: (Attachment) -> Unit = {}, onThumbDragStart: (Attachment) -> Unit = {}, onThumbDragStop: (Attachment, Float) -> Unit = { _, _ -> })

Represents the audio recording attachment content item.

Link copied to clipboard
fun FileAttachmentContent(attachmentState: AttachmentState, modifier: Modifier = Modifier, showFileSize: (Attachment) -> Boolean = { true }, onItemClick: (previewHandlers: List<AttachmentPreviewHandler>, attachment: Attachment) -> Unit = ::onFileAttachmentContentItemClick)

Builds a file attachment message which shows a list of files.

Link copied to clipboard

Represents the image that's shown in file attachments. This can be either an image/icon that represents the file type or a thumbnail in case the file type is an image.

Link copied to clipboard
fun FileAttachmentItem(attachment: Attachment, isMine: Boolean, showFileSize: (Attachment) -> Boolean, modifier: Modifier = Modifier)

Represents each file item in the list of file attachments.

Link copied to clipboard
fun GiphyAttachmentContent(state: AttachmentState, modifier: Modifier = Modifier, giphyInfoType: GiphyInfoType = GiphyInfoType.FIXED_HEIGHT_DOWNSAMPLED, giphySizingMode: GiphySizingMode = GiphySizingMode.ADAPTIVE, contentScale: ContentScale = ContentScale.Crop, onItemClick: (GiphyAttachmentClickData) -> Unit = {})

Builds a Giphy attachment message.

Link copied to clipboard
fun LinkAttachmentContent(state: AttachmentState, modifier: Modifier = Modifier, onItemClick: (LinkAttachmentClickData) -> Unit = { onLinkAttachmentContentClick(it.context, it.url) })

Builds a link attachment message, which shows the link image preview, the title of the link as well as its description.

Link copied to clipboard
fun MediaAttachmentContent(state: AttachmentState, modifier: Modifier = Modifier, maximumNumberOfPreviewedItems: Int = 4, skipEnrichUrl: Boolean = false, onItemClick: (MediaAttachmentClickData) -> Unit = { onMediaAttachmentContentItemClick( it.mediaGalleryPreviewLauncher, it.message, it.selectedAttachmentUrl, it.videoThumbnailsEnabled, it.streamCdnImageResizing, it.skipEnrichUrl, ) }, itemOverlayContent: @Composable (attachmentType: String?) -> Unit = { attachmentType -> if (attachmentType == AttachmentType.VIDEO) { PlayButton(PlayButtonSize.Medium) } })

Displays a preview of single or multiple video or attachments.

Link copied to clipboard

Represents fallback content for unsupported attachments.