AttachmentsPickerSystemTabFactory

class AttachmentsPickerSystemTabFactory(filesAllowed: Boolean, mediaAllowed: Boolean, captureImageAllowed: Boolean, captureVideoAllowed: Boolean, pollAllowed: Boolean) : AttachmentsPickerTabFactory

Holds the information required to add support for "files" tab in the attachment picker.

Parameters

filesAllowed

If the option to pick files is included in the attachments picker.

mediaAllowed

If the option to pick media (images/videos) is included in the attachments picker.

captureImageAllowed

If the option to capture an image is included in the attachments picker.

captureVideoAllowed

If the option to capture a video is included in the attachments picker.

pollAllowed

If the option to create a poll is included in the attachments picker.

Constructors

Link copied to clipboard
constructor(otherFactories: List<AttachmentsPickerTabFactory>)

Holds the information required to add support for "files" tab in the attachment picker.

constructor(filesAllowed: Boolean, mediaAllowed: Boolean, captureImageAllowed: Boolean, captureVideoAllowed: Boolean, pollAllowed: Boolean)

Properties

Link copied to clipboard

The attachment picker mode that this factory handles.

Functions

Link copied to clipboard
open override fun PickerTabContent(onAttachmentPickerAction: (AttachmentPickerAction) -> Unit, attachments: List<AttachmentPickerItemState>, onAttachmentsChanged: (List<AttachmentPickerItemState>) -> Unit, onAttachmentItemSelected: (AttachmentPickerItemState) -> Unit, onAttachmentsSubmitted: (List<AttachmentMetaData>) -> Unit)

Emits content that allows users to pick files in this tab.

Link copied to clipboard
open override fun PickerTabIcon(isEnabled: Boolean, isSelected: Boolean)

Emits a file icon for this tab.

Inherited functions

Link copied to clipboard
open fun isPickerTabEnabled(channel: Channel): Boolean

Determines if the picker tab is enabled.