-
public final class MessageComposerAttachmentAudioRecordItemParamsParameters for the ChatComponentFactory.MessageComposerAttachmentAudioRecordItem component.
-
-
Field Summary
Fields Modifier and Type Field Description private final Attachmentattachmentprivate final AudioPlayerStateplayerStateprivate final Modifiermodifierprivate final Function1<Attachment, Unit>onPlayToggleClickprivate final Function1<Attachment, Unit>onPlaySpeedClickprivate final Function1<Attachment, Unit>onThumbDragStartprivate final Function2<Attachment, Float, Unit>onThumbDragStopprivate final Function1<Attachment, Unit>onAttachmentRemoved
-
Constructor Summary
Constructors Constructor Description MessageComposerAttachmentAudioRecordItemParams(Attachment attachment, AudioPlayerState playerState, Modifier modifier, Function1<Attachment, Unit> onPlayToggleClick, Function1<Attachment, Unit> onPlaySpeedClick, Function1<Attachment, Unit> onThumbDragStart, Function2<Attachment, Float, Unit> onThumbDragStop, Function1<Attachment, Unit> onAttachmentRemoved)
-
Method Summary
Modifier and Type Method Description final AttachmentgetAttachment()final AudioPlayerStategetPlayerState()final ModifiergetModifier()final Function1<Attachment, Unit>getOnPlayToggleClick()final Function1<Attachment, Unit>getOnPlaySpeedClick()final Function1<Attachment, Unit>getOnThumbDragStart()final Function2<Attachment, Float, Unit>getOnThumbDragStop()final Function1<Attachment, Unit>getOnAttachmentRemoved()-
-
Constructor Detail
-
MessageComposerAttachmentAudioRecordItemParams
MessageComposerAttachmentAudioRecordItemParams(Attachment attachment, AudioPlayerState playerState, Modifier modifier, Function1<Attachment, Unit> onPlayToggleClick, Function1<Attachment, Unit> onPlaySpeedClick, Function1<Attachment, Unit> onThumbDragStart, Function2<Attachment, Float, Unit> onThumbDragStop, Function1<Attachment, Unit> onAttachmentRemoved)
- 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.
-
-
Method Detail
-
getAttachment
final Attachment getAttachment()
-
getPlayerState
final AudioPlayerState getPlayerState()
-
getModifier
final Modifier getModifier()
-
getOnPlayToggleClick
final Function1<Attachment, Unit> getOnPlayToggleClick()
-
getOnPlaySpeedClick
final Function1<Attachment, Unit> getOnPlaySpeedClick()
-
getOnThumbDragStart
final Function1<Attachment, Unit> getOnThumbDragStart()
-
getOnThumbDragStop
final Function2<Attachment, Float, Unit> getOnThumbDragStop()
-
getOnAttachmentRemoved
final Function1<Attachment, Unit> getOnAttachmentRemoved()
-
-
-
-