AttachmentSystemPickerParams
data class AttachmentSystemPickerParams(val channel: Channel, val messageMode: MessageMode, val attachments: List<AttachmentPickerItemState>, val actions: AttachmentPickerActions, val onUrisSelected: (List<Uri>) -> Unit, val onAttachmentsSubmitted: (List<AttachmentMetaData>) -> Unit, val messageAction: MessageAction? = null)
Parameters for ChatComponentFactory.AttachmentSystemPicker.
Parameters
channel
Used to check channel capabilities.
messageMode
Used to filter modes.
attachments
Current attachment state.
actions
The attachment picker actions.
onUrisSelected
Called with URIs from system pickers.
onAttachmentsSubmitted
Called when camera-captured media is ready.
messageAction
The composer action currently active; drives per-command enabled state in the command section. null treats every command as enabled.
Constructors
Link copied to clipboard
constructor(channel: Channel, messageMode: MessageMode, attachments: List<AttachmentPickerItemState>, actions: AttachmentPickerActions, onUrisSelected: (List<Uri>) -> Unit, onAttachmentsSubmitted: (List<AttachmentMetaData>) -> Unit, messageAction: MessageAction? = null)