SelectAttachmentsView
fun SelectAttachmentsView(attachments: List<Attachment>, onAttachmentTapped: (Attachment) -> Unit, onShare: (Collection<Attachment>) -> Unit, onCancel: () -> Unit, modifier: Modifier = Modifier)
Present a view to select and display or share from a list of Attachment. Current implementation utilizes the SDK's shared wide-screen modal bottom sheet to present the view, with enabled sheet gestures and disabled partial expansion.
Parameters
attachments
Available attachments.
onAttachmentTapped
Direct action on an attachment, typically preview a single attachment.
onShare
Share was selected for one or more attachments. Selected attachments are passed as the sole parameter.
onCancel
The selection user intent was cancelled via back button or a tap outside the view.
modifier
Modifier for the underlying bottom sheet.