-
public class AttachmentsPickerTabFactoriesProvides different attachment picker tab factories that build tab icons and tab contents for the attachment picker.
-
-
Field Summary
Fields Modifier and Type Field Description public final static AttachmentsPickerTabFactoriesINSTANCE
-
Method Summary
Modifier and Type Method Description final List<AttachmentsPickerTabFactory>defaultFactoriesWithoutStoragePermissions()Builds the default list of attachment picker tab factories (without requesting storage permission). 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). final List<AttachmentsPickerTabFactory>systemAttachmentsPickerTabFactories(SystemAttachmentsPickerConfig config)Builds the default list of attachment picker tab factories (without requesting storage permission). final List<AttachmentsPickerTabFactory>defaultFactories(Boolean imagesTabEnabled, Boolean filesTabEnabled, Boolean takeImageEnabled, Boolean recordVideoEnabled, Boolean pollEnabled)Builds the default list of attachment picker tab factories. -
-
Method Detail
-
defaultFactoriesWithoutStoragePermissions
@Deprecated(message = Use systemAttachmentsPickerTabFactories(config: SystemAttachmentsPickerConfig2) instead., replaceWith = @ReplaceWith(imports = {}, expression = systemAttachmentsPickerTabFactories(config)), level = DeprecationLevel.ERROR) final List<AttachmentsPickerTabFactory> defaultFactoriesWithoutStoragePermissions()
Builds the default list of attachment picker tab factories (without requesting storage permission).
-
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.
-
systemAttachmentsPickerTabFactories
final List<AttachmentsPickerTabFactory> systemAttachmentsPickerTabFactories(SystemAttachmentsPickerConfig config)
Builds the default list of attachment picker tab factories (without requesting storage permission).
- Parameters:
config- The configuration for the system attachment 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.
-
-
-
-