AudioAttachmentContentItem
fun AudioAttachmentContentItem(modifier: Modifier = Modifier, attachment: Attachment, playerState: AudioPlayerState, isMine: Boolean = false, onPlayToggleClick: (Attachment) -> Unit = {}, onThumbDragStart: (Attachment) -> Unit = {}, onThumbDragStop: (Attachment, Float) -> Unit = { _, _ -> })
Represents a single audio file attachment player: a play/pause toggle, the file name, the elapsed playback time, a seek bar and the file type icon.
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.
onThumbDragStart
The callback for when the thumb gets dragged.
onThumbDragStop
The callback for when the thumb gets released.