-
public final class FilesPickerKt
-
-
Method Summary
Modifier and Type Method Description final static UnitFilesPicker(List<AttachmentPickerItemState> files, Function1<AttachmentPickerItemState, Unit> onItemSelected, Function1<List<Uri>, Unit> onBrowseFilesResult, Modifier modifier, Boolean allowMultipleSelection, Function1<AttachmentPickerItemState, Unit> itemContent)Shows the UI for files the user can pick for message attachments. -
-
Method Detail
-
FilesPicker
@Composable() final static Unit FilesPicker(List<AttachmentPickerItemState> files, Function1<AttachmentPickerItemState, Unit> onItemSelected, Function1<List<Uri>, Unit> onBrowseFilesResult, Modifier modifier, Boolean allowMultipleSelection, Function1<AttachmentPickerItemState, Unit> itemContent)
Shows the UI for files the user can pick for message attachments. Exposes the logic of selecting items and browsing for extra files.
- Parameters:
files- The files the user can pick, to be rendered in a list.onItemSelected- Handler when the user clicks on any file item.onBrowseFilesResult- Handler when the user clicks on the browse more files action.modifier- Modifier for styling.allowMultipleSelection- Whentrue, users can select multiple files.itemContent- Composable for rendering individual file items.
-
-
-
-