Package 

Object AttachmentsPickerTabFactories


  • 
    public class AttachmentsPickerTabFactories
    
                        

    Provides different attachment picker tab factories that build tab icons and tab contents for the attachment picker.

    • Method Detail

      • defaultFactoriesWithoutStoragePermissions

        @Deprecated(message = Use systemAttachmentsPickerTabFactories(config: SystemAttachmentsPickerConfig2) instead., replaceWith = @ReplaceWith(imports = {}, expression = systemAttachmentsPickerTabFactories(config)), level = DeprecationLevel.WARNING) final List<AttachmentsPickerTabFactory> defaultFactoriesWithoutStoragePermissions(Boolean filesAllowed, Boolean mediaAllowed, Boolean captureImageAllowed, Boolean captureVideoAllowed, Boolean pollAllowed)

        Builds the default list of attachment picker tab factories (without requesting storage permission).

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

         final List<AttachmentsPickerTabFactory> defaultFactories(Boolean imagesTabEnabled, Boolean filesTabEnabled, Boolean takeImageEnabled, Boolean recordVideoEnabled, Boolean pollEnabled)

        Builds the default list of attachment picker tab factories.

        Parameters:
        imagesTabEnabled - If the factory that allows users to pick images is included in the resulting list.
        filesTabEnabled - If the factory that allows users to pick files is included in the resulting list.
        takeImageEnabled - If the factory that allows users to start image capture is included in the resulting list.
        recordVideoEnabled - If the factory that allows users to start video capture is included in the resulting list.
        pollEnabled - If the factory that allows users to create a poll.