AudioRecordAttachmentContentItem

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.

Parameters

modifier

Modifier for styling.

attachment

The attachment to display.

playerState

The state of the audio player.

isMine

If the message is from the current user.

onPlayToggleClick

The callback for when the play button is clicked.

onPlaySpeedClick

The callback for when the speed button is clicked.

onThumbDragStart

The callback for when the thumb gets dragged.

onThumbDragStop

The callback for when the thumb gets released.