Package 

Interface AttachmentsPickerTabFactory

    • Method Detail

      • 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.