-
public final class AudioRecordAttachmentContentKt
-
-
Method Summary
Modifier and Type Method Description final static UnitAudioRecordAttachmentContent(Modifier modifier, AttachmentState attachmentState, AudioPlayerViewModelFactory viewModelFactory)Represents the audio recording attachment content. final static UnitAudioRecordAttachmentContentItem(Modifier modifier, Attachment attachment, AudioPlayerState playerState, Boolean isMine, Function1<Attachment, Unit> onPlayToggleClick, Function1<Attachment, Unit> onPlaySpeedClick, Function1<Attachment, Unit> onThumbDragStart, Function2<Attachment, Float, Unit> onThumbDragStop)Represents the audio recording attachment content item. -
-
Method Detail
-
AudioRecordAttachmentContent
@Composable() final static Unit AudioRecordAttachmentContent(Modifier modifier, AttachmentState attachmentState, AudioPlayerViewModelFactory viewModelFactory)
Represents the audio recording attachment content.
- Parameters:
modifier- Modifier for styling.attachmentState- The state of the attachment.viewModelFactory- The factory for creating the AudioPlayerViewModel.
-
AudioRecordAttachmentContentItem
@Composable() final static Unit AudioRecordAttachmentContentItem(Modifier modifier, Attachment attachment, AudioPlayerState playerState, Boolean isMine, Function1<Attachment, Unit> onPlayToggleClick, Function1<Attachment, Unit> onPlaySpeedClick, Function1<Attachment, Unit> onThumbDragStart, Function2<Attachment, Float, Unit> onThumbDragStop)
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.
-
-
-
-