AttachmentPickerContentParams

data class AttachmentPickerContentParams(val pickerMode: AttachmentPickerMode?, val commands: List<Command>, val attachments: List<AttachmentPickerItemState>, val onLoadAttachments: () -> Unit, val onUrisSelected: (List<Uri>) -> Unit, val actions: AttachmentPickerActions, val onAttachmentsSubmitted: (List<AttachmentMetaData>) -> Unit)

Parameters for ChatComponentFactory.AttachmentPickerContent.

Parameters

pickerMode

The currently active mode.

commands

Available slash commands.

attachments

Current attachment items.

onLoadAttachments

Called to trigger loading attachment metadata.

onUrisSelected

Called with URIs from a system picker.

actions

The attachment picker actions.

onAttachmentsSubmitted

Called when attachments are ready.

Constructors

Link copied to clipboard
constructor(pickerMode: AttachmentPickerMode?, commands: List<Command>, attachments: List<AttachmentPickerItemState>, onLoadAttachments: () -> Unit, onUrisSelected: (List<Uri>) -> Unit, actions: AttachmentPickerActions, onAttachmentsSubmitted: (List<AttachmentMetaData>) -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard