-
public interface AttachmentsPickerTabFactoryHolds the information required to add support for a AttachmentsPickerMode mode in the attachment picker.
-
-
Method Summary
Modifier and Type Method Description BooleanisPickerTabEnabled(Channel channel)Determines if the picker tab is enabled. abstract UnitPickerTabIcon(Boolean isEnabled, Boolean isSelected)Emits an icon for the tab. abstract UnitPickerTabContent(Function1<AttachmentPickerAction, Unit> onAttachmentPickerAction, List<AttachmentPickerItemState> attachments, Function1<List<AttachmentPickerItemState>, Unit> onAttachmentsChanged, Function1<AttachmentPickerItemState, Unit> onAttachmentItemSelected, Function1<List<AttachmentMetaData>, Unit> onAttachmentsSubmitted)Emits a content for the tab. abstract AttachmentsPickerModegetAttachmentsPickerMode()The attachment picker mode that this factory handles. -
-
Method Detail
-
isPickerTabEnabled
Boolean isPickerTabEnabled(Channel channel)
Determines if the picker tab is enabled.
-
PickerTabIcon
@Composable() abstract Unit PickerTabIcon(Boolean isEnabled, Boolean isSelected)
Emits an icon for the tab.
- Parameters:
isEnabled- If the tab is enabled.isSelected- If the tab is selected.
-
PickerTabContent
@Composable() abstract Unit PickerTabContent(Function1<AttachmentPickerAction, Unit> onAttachmentPickerAction, List<AttachmentPickerItemState> attachments, Function1<List<AttachmentPickerItemState>, Unit> onAttachmentsChanged, Function1<AttachmentPickerItemState, Unit> onAttachmentItemSelected, Function1<List<AttachmentMetaData>, Unit> onAttachmentsSubmitted)
Emits a content for the tab.
- Parameters:
onAttachmentPickerAction- A lambda that will be invoked when an action is happened.attachments- The list of attachments to display.onAttachmentsChanged- Handler to set the loaded list of attachments to display.onAttachmentItemSelected- Handler when the item selection state changes.onAttachmentsSubmitted- Handler to submit the selected attachments to the message composer.
-
getAttachmentsPickerMode
abstract AttachmentsPickerMode getAttachmentsPickerMode()
The attachment picker mode that this factory handles.
-
-
-
-