-
public final class AudioAttachmentContentKt
-
-
Method Summary
Modifier and Type Method Description final static UnitAudioAttachmentContentItem(Modifier modifier, Attachment attachment, AudioPlayerState playerState, Boolean isMine, Function1<Attachment, Unit> onPlayToggleClick, Function1<Attachment, Unit> onThumbDragStart, Function2<Attachment, Float, Unit> onThumbDragStop)Represents a single audio file attachment player: a play/pause toggle, the file name, the elapsed playback time, a seek bar and the file type icon. -
-
Method Detail
-
AudioAttachmentContentItem
@Composable() final static Unit AudioAttachmentContentItem(Modifier modifier, Attachment attachment, AudioPlayerState playerState, Boolean isMine, Function1<Attachment, Unit> onPlayToggleClick, Function1<Attachment, Unit> onThumbDragStart, Function2<Attachment, Float, Unit> onThumbDragStop)
Represents a single audio file attachment player: a play/pause toggle, the file name, the elapsed playback time, a seek bar and the file type icon.
- 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.onThumbDragStart- The callback for when the thumb gets dragged.onThumbDragStop- The callback for when the thumb gets released.
-
-
-
-