AudioRecordAttachmentContent

fun AudioRecordAttachmentContent(modifier: Modifier = Modifier, attachmentState: AttachmentState, viewModelFactory: AudioPlayerViewModelFactory, getCurrentUserId: () -> String? = { null })

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.


fun AudioRecordAttachmentContent(modifier: Modifier = Modifier, attachment: Attachment, playerState: AudioPlayerState, onPlayToggleClick: (Attachment) -> Unit, onPlaySpeedClick: (Attachment) -> Unit, onScrubberDragStart: (Attachment) -> Unit = {}, onScrubberDragStop: (Attachment, Float) -> Unit = { _, _ -> })

Deprecated

Use AudioRecordAttachmentContentItem instead

Replace with

import io.getstream.chat.android.compose.ui.attachments.content
AudioRecordAttachmentContentItem(/* parameters */)

Represents the audio recording attachment content item.