AttachmentsPickerDialogStyle

data class AttachmentsPickerDialogStyle(@ColorInt val attachmentsPickerBackgroundColor: Int, val allowAccessButtonTextStyle: TextStyle, val submitAttachmentsButtonIconDrawable: Drawable, val attachmentTabToggleButtonStateList: ColorStateList?, val mediaAttachmentsTabEnabled: Boolean, val mediaAttachmentsTabIconDrawable: Drawable, val allowAccessToMediaButtonText: String, val allowAccessToMediaIconDrawable: Drawable, val videoLengthTextVisible: Boolean, val videoLengthTextStyle: TextStyle, val videoIconVisible: Boolean, val videoIconDrawable: Drawable, @ColorInt val videoIconDrawableTint: Int?, val mediaAttachmentNoMediaText: String, val mediaAttachmentNoMediaTextStyle: TextStyle, val fileAttachmentsTabEnabled: Boolean, val fileAttachmentsTabIconDrawable: Drawable, val allowAccessToFilesButtonText: String, val allowAccessToFilesIconDrawable: Drawable, val recentFilesText: String, val recentFilesTextStyle: TextStyle, val fileManagerIconDrawable: Drawable, val fileAttachmentsNoFilesText: String, val fileAttachmentsNoFilesTextStyle: TextStyle, val fileAttachmentItemNameTextStyle: TextStyle, val fileAttachmentItemSizeTextStyle: TextStyle, val fileAttachmentItemCheckboxSelectedDrawable: Drawable, val fileAttachmentItemCheckboxDeselectedDrawable: Drawable, @ColorInt val fileAttachmentItemCheckboxTextColor: Int, val cameraAttachmentsTabEnabled: Boolean, val cameraAttachmentsTabIconDrawable: Drawable, val allowAccessToCameraButtonText: String, val allowAccessToCameraIconDrawable: Drawable, val pickerMediaMode: PickerMediaMode) : ViewStyle

Style for AttachmentsPickerDialogFragment.

Parameters

attachmentsPickerBackgroundColor

The background color of the picker.

allowAccessButtonTextStyle

The text style used for all the buttons used to request required permissions.

submitAttachmentsButtonIconDrawable

The icon for the submit selected attachments button.

attachmentTabToggleButtonStateList

The color selector that will be applied to each tab button.

mediaAttachmentsTabEnabled

If the media attachments tab is displayed in the picker.

mediaAttachmentsTabIconDrawable

The icon for the image attachments tab.

allowAccessToMediaButtonText

The text to request required permissions on the image attachments tab.

allowAccessToMediaIconDrawable

The icon above the permissions text on the image attachments tab.

videoLengthTextVisible

If the video duration caption is displayed.

videoLengthTextStyle

The text style used for video duration caption in each tile.

videoIconVisible

If the video icon is displayed.

videoIconDrawable

The icon used for video files.

videoIconDrawableTint

The tint of the icon used for video files.

mediaAttachmentNoMediaText

The text that will be displayed if there are no media files on the device.

mediaAttachmentNoMediaTextStyle

The text style for the the no media files text.

fileAttachmentsTabEnabled

If the file attachments tab is displayed in the picker.

fileAttachmentsTabIconDrawable

The icon for the file attachments tab.

allowAccessToFilesButtonText

The text to request required permissions on the file attachments tab.

allowAccessToFilesIconDrawable

The icon above the permissions text on the file attachments tab.

recentFilesText

The text above the file list on the file attachments tab.

recentFilesTextStyle

The text style of the recent files text on the file attachments tab.

fileManagerIconDrawable

The icon for a button to pick files from file manager.

fileAttachmentsNoFilesText

The text that will be displayed if there are no files on the device.

fileAttachmentsNoFilesTextStyle

The text style for the the no files text.

fileAttachmentItemNameTextStyle

The text style for the file name in a file attachment item.

fileAttachmentItemSizeTextStyle

The text style for the file size in a file attachment item.

fileAttachmentItemCheckboxSelectedDrawable

The drawable for the selected state of the checkbox in file attachment item.

fileAttachmentItemCheckboxDeselectedDrawable

The drawable for the deselected state of the checkbox in file attachment item.

fileAttachmentItemCheckboxTextColor

The color of the checkbox in file attachment item.

cameraAttachmentsTabEnabled

If the media capture tab is displayed in the picker.

cameraAttachmentsTabIconDrawable

The icon for the camera attachments tab.

allowAccessToCameraButtonText

The text to request required permissions on the camera attachments tab.

allowAccessToCameraIconDrawable

The icon above the permissions text on the camera attachments tab.

pickerMediaMode

define which media type will be allowed.

Constructors

Link copied to clipboard
constructor(@ColorInt attachmentsPickerBackgroundColor: Int, allowAccessButtonTextStyle: TextStyle, submitAttachmentsButtonIconDrawable: Drawable, attachmentTabToggleButtonStateList: ColorStateList?, mediaAttachmentsTabEnabled: Boolean, mediaAttachmentsTabIconDrawable: Drawable, allowAccessToMediaButtonText: String, allowAccessToMediaIconDrawable: Drawable, videoLengthTextVisible: Boolean, videoLengthTextStyle: TextStyle, videoIconVisible: Boolean, videoIconDrawable: Drawable, @ColorInt videoIconDrawableTint: Int?, mediaAttachmentNoMediaText: String, mediaAttachmentNoMediaTextStyle: TextStyle, fileAttachmentsTabEnabled: Boolean, fileAttachmentsTabIconDrawable: Drawable, allowAccessToFilesButtonText: String, allowAccessToFilesIconDrawable: Drawable, recentFilesText: String, recentFilesTextStyle: TextStyle, fileManagerIconDrawable: Drawable, fileAttachmentsNoFilesText: String, fileAttachmentsNoFilesTextStyle: TextStyle, fileAttachmentItemNameTextStyle: TextStyle, fileAttachmentItemSizeTextStyle: TextStyle, fileAttachmentItemCheckboxSelectedDrawable: Drawable, fileAttachmentItemCheckboxDeselectedDrawable: Drawable, @ColorInt fileAttachmentItemCheckboxTextColor: Int, cameraAttachmentsTabEnabled: Boolean, cameraAttachmentsTabIconDrawable: Drawable, allowAccessToCameraButtonText: String, allowAccessToCameraIconDrawable: Drawable, pickerMediaMode: PickerMediaMode)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard