-
- All Implemented Interfaces:
-
io.getstream.chat.android.ui.feature.messages.composer.attachment.picker.factory.AttachmentsPickerTabFactory
public final class AttachmentsPickerSystemTabFactory implements AttachmentsPickerTabFactory
An attachment factory that creates a tab with the few icons and uses system pickers instead.
-
-
Method Summary
Modifier and Type Method Description DrawablecreateTabIcon(AttachmentsPickerDialogStyle style)Create the tab icon. FragmentcreateTabFragment(AttachmentsPickerDialogStyle style, AttachmentsPickerTabListener attachmentsPickerTabListener)Create the tab fragment. -
-
Constructor Detail
-
AttachmentsPickerSystemTabFactory
AttachmentsPickerSystemTabFactory(Boolean mediaAttachmentsTabEnabled, Boolean visualMediaAllowMultiple, VisualMediaType visualMediaType, Boolean fileAttachmentsTabEnabled, Boolean cameraAttachmentsTabEnabled, Boolean pollAttachmentsTabEnabled)
- Parameters:
mediaAttachmentsTabEnabled- If the option to pick media (images/videos) is included in the attachments picker.visualMediaAllowMultiple- If true, multiple visual media items can be selected.visualMediaType- The types of visual media that can be picked.fileAttachmentsTabEnabled- If the option to pick files is included in the attachments picker.cameraAttachmentsTabEnabled- If the option to capture an image/video is included in the attachments picker.pollAttachmentsTabEnabled- If the option to create a poll is included in the attachments picker.
-
-
Method Detail
-
createTabIcon
Drawable createTabIcon(AttachmentsPickerDialogStyle style)
Create the tab icon.
- Parameters:
style- The style of the dialog.
-
createTabFragment
Fragment createTabFragment(AttachmentsPickerDialogStyle style, AttachmentsPickerTabListener attachmentsPickerTabListener)
Create the tab fragment.
- Parameters:
style- The style of the dialog.attachmentsPickerTabListener- The listener for the tab.
-
-
-
-