-
public final class AudioRecordAttachmentContentKt
-
-
Method Summary
Modifier and Type Method Description final static UnitAudioRecordGroupContent(Modifier modifier, AttachmentState attachmentState, AudioPlayerViewModelFactory viewModelFactory)Represents the audio recording attachment content. final static UnitAudioRecordAttachmentContent(Modifier modifier, Attachment attachment, AudioPlayerState playerState, Function1<Attachment, Unit> onPlayToggleClick, Function1<Attachment, Unit> onPlaySpeedClick, Function1<Attachment, Unit> onScrubberDragStart, Function2<Attachment, Float, Unit> onScrubberDragStop)Represents the audio recording attachment content item. final static UnitAudioRecordAttachmentContent(Modifier modifier, AttachmentState attachmentState, AudioPlayerViewModelFactory viewModelFactory, Function0<String> getCurrentUserId)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
-
AudioRecordGroupContent
@Deprecated(message = Use AudioRecordAttachmentContent with 4 parameters instead, replaceWith = @ReplaceWith(imports = {io.getstream.chat.android.compose.ui.attachments.content}, expression = AudioRecordAttachmentContent(/* parameters */, getCurrentUserId = { /* your implementation */ })))@Composable() final static Unit AudioRecordGroupContent(Modifier modifier, AttachmentState attachmentState, AudioPlayerViewModelFactory viewModelFactory)
Represents the audio recording attachment content.
-
AudioRecordAttachmentContent
@Deprecated(message = Use AudioRecordAttachmentContentItem instead, replaceWith = @ReplaceWith(imports = {io.getstream.chat.android.compose.ui.attachments.content}, expression = AudioRecordAttachmentContentItem(/* parameters */)))@Composable() final static Unit AudioRecordAttachmentContent(Modifier modifier, Attachment attachment, AudioPlayerState playerState, Function1<Attachment, Unit> onPlayToggleClick, Function1<Attachment, Unit> onPlaySpeedClick, Function1<Attachment, Unit> onScrubberDragStart, Function2<Attachment, Float, Unit> onScrubberDragStop)
Represents the audio recording attachment content item.
-
AudioRecordAttachmentContent
@Composable() final static Unit AudioRecordAttachmentContent(Modifier modifier, AttachmentState attachmentState, AudioPlayerViewModelFactory viewModelFactory, Function0<String> getCurrentUserId)
Represents the audio recording attachment content.
- Parameters:
modifier- Modifier for styling.attachmentState- The state of the attachment.viewModelFactory- The factory for creating the AudioPlayerViewModel.getCurrentUserId- The function to get the current user ID.
-
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.
-
-
-
-