Package 

Class AudioRecordAttachmentContentKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit AudioRecordGroupContent(Modifier modifier, AttachmentState attachmentState, AudioPlayerViewModelFactory viewModelFactory) Represents the audio recording attachment content.
      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.
      final static Unit AudioRecordAttachmentContent(Modifier modifier, AttachmentState attachmentState, AudioPlayerViewModelFactory viewModelFactory, Function0<String> getCurrentUserId) Represents the audio recording attachment content.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.