AttachmentPickerConfig

data class AttachmentPickerConfig(val useSystemPicker: Boolean = true, val modes: List<AttachmentPickerMode> = DefaultAttachmentPickerModes)

Configuration for the attachment picker component.

Parameters

useSystemPicker

When true (default), uses the system's native file/media picker which does not require storage permissions. When false, uses the in-app picker which shows a grid of media files but requires storage permissions to be granted and declared in your manifest.

modes

The list of AttachmentPickerMode instances that define which attachment types are available. The order of modes determines the order of tabs in the picker. Defaults to gallery, files, camera, poll, and commands.

Constructors

Link copied to clipboard
constructor(useSystemPicker: Boolean = true, modes: List<AttachmentPickerMode> = DefaultAttachmentPickerModes)

Properties

Link copied to clipboard
Link copied to clipboard