MessageComposerAttachmentAudioRecordItemParams
constructor(attachment: Attachment, playerState: AudioPlayerState, modifier: Modifier = Modifier, onPlayToggleClick: (Attachment) -> Unit = {}, onPlaySpeedClick: (Attachment) -> Unit = {}, onThumbDragStart: (Attachment) -> Unit = {}, onThumbDragStop: (Attachment, Float) -> Unit = { _, _ -> }, onAttachmentRemoved: (Attachment) -> Unit = {})
Parameters
attachment
The audio recording attachment to render.
playerState
Current state of the audio player.
modifier
Modifier for styling.
onPlayToggleClick
Called when the play/pause button is tapped.
onPlaySpeedClick
Called when the playback speed button is tapped.
onThumbDragStart
Called when the user starts dragging the waveform thumb.
onThumbDragStop
Called when the user stops dragging, with the target seek fraction.
onAttachmentRemoved
Called when the attachment is removed by the user.