FileUploadPatternState

State holder for file upload pattern that manages file picking logic.

This state provides launchers for different picker types. It abstracts the complexity of handling different selection modes (single vs. multiple) and source types like camera or system file picker.

Properties

Link copied to clipboard

Whether this pattern is in single file mode.

Link copied to clipboard

Function to launch the camera picker.

Link copied to clipboard

Function to launch the file picker.

Link copied to clipboard

Function to launch the gallery picker (using the system file picker filtered for images).

Link copied to clipboard
val launchPicker: () -> Unit

Main launcher function that handles source selection based on FileUploadType.

Link copied to clipboard

Maximum number of files allowed (null means no limit), only relevant for multiple mode.