-
public final class AttachmentMediaPickerParamsParameters for ChatComponentFactory.AttachmentMediaPicker.
-
-
Field Summary
Fields Modifier and Type Field Description private final GalleryPickerModepickerModeprivate final List<AttachmentPickerItemState>attachmentsprivate final Function0<Unit>onLoadAttachmentsprivate final Function1<AttachmentPickerItemState, Unit>onAttachmentItemSelected
-
Constructor Summary
Constructors Constructor Description AttachmentMediaPickerParams(GalleryPickerMode pickerMode, List<AttachmentPickerItemState> attachments, Function0<Unit> onLoadAttachments, Function1<AttachmentPickerItemState, Unit> onAttachmentItemSelected)
-
Method Summary
Modifier and Type Method Description final GalleryPickerModegetPickerMode()final List<AttachmentPickerItemState>getAttachments()final Function0<Unit>getOnLoadAttachments()final Function1<AttachmentPickerItemState, Unit>getOnAttachmentItemSelected()-
-
Constructor Detail
-
AttachmentMediaPickerParams
AttachmentMediaPickerParams(GalleryPickerMode pickerMode, List<AttachmentPickerItemState> attachments, Function0<Unit> onLoadAttachments, Function1<AttachmentPickerItemState, Unit> onAttachmentItemSelected)
- Parameters:
pickerMode- Configuration for the gallery picker.attachments- Media items to display.onLoadAttachments- Called to trigger loading media metadata.onAttachmentItemSelected- Called when user taps an item.
-
-
Method Detail
-
getPickerMode
final GalleryPickerMode getPickerMode()
-
getAttachments
final List<AttachmentPickerItemState> getAttachments()
-
getOnLoadAttachments
final Function0<Unit> getOnLoadAttachments()
-
getOnAttachmentItemSelected
final Function1<AttachmentPickerItemState, Unit> getOnAttachmentItemSelected()
-
-
-
-