ColorSelection
data class ColorSelection(val selectedColor: SingleColor? = null, val withButtonView: Boolean = true, val extraButton: SelectionButton? = null, val onExtraButtonClick: () -> Unit? = null, val negativeButton: SelectionButton? = BaseConstants.DEFAULT_NEGATIVE_BUTTON, val onNegativeClick: () -> Unit? = null, val positiveButton: SelectionButton = BaseConstants.DEFAULT_POSITIVE_BUTTON, val onSelectNone: () -> Unit? = null, val onSelectColor: (color: Int) -> Unit) : BaseSelection
The selection configuration for the color dialog.
Parameters
selectedColor
A color that is selected by default.
withButtonView
If true, the dialog will show a button view.
extraButton
An extra button that can be used for a custom action.
onExtraButtonClick
The listener that is invoked when the extra button is clicked.
negativeButton
The button that will be used as a negative button.
onNegativeClick
The listener that is invoked when the negative button is clicked.
positiveButton
The button that will be used as a positive button.
onSelectNone
The listener that is invoked when no color is selected.
onSelectColor
The listener that returns the selected color.
Constructors
Link copied to clipboard
constructor(selectedColor: SingleColor? = null, withButtonView: Boolean = true, extraButton: SelectionButton? = null, onExtraButtonClick: () -> Unit? = null, negativeButton: SelectionButton? = BaseConstants.DEFAULT_NEGATIVE_BUTTON, onNegativeClick: () -> Unit? = null, positiveButton: SelectionButton = BaseConstants.DEFAULT_POSITIVE_BUTTON, onSelectNone: () -> Unit? = null, onSelectColor: (color: Int) -> Unit)