MessageComposerAttachmentAudioRecordItemParams
data class MessageComposerAttachmentAudioRecordItemParams(val attachment: Attachment, val playerState: AudioPlayerState, val modifier: Modifier = Modifier, val onPlayToggleClick: (Attachment) -> Unit = {}, val onPlaySpeedClick: (Attachment) -> Unit = {}, val onThumbDragStart: (Attachment) -> Unit = {}, val onThumbDragStop: (Attachment, Float) -> Unit = { _, _ -> }, val onAttachmentRemoved: (Attachment) -> Unit = {})
Parameters for the ChatComponentFactory.MessageComposerAttachmentAudioRecordItem component.
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.
Constructors
Link copied to clipboard
constructor(attachment: Attachment, playerState: AudioPlayerState, modifier: Modifier = Modifier, onPlayToggleClick: (Attachment) -> Unit = {}, onPlaySpeedClick: (Attachment) -> Unit = {}, onThumbDragStart: (Attachment) -> Unit = {}, onThumbDragStop: (Attachment, Float) -> Unit = { _, _ -> }, onAttachmentRemoved: (Attachment) -> Unit = {})