HoursMinutesSeconds
class HoursMinutesSeconds(val withButtonView: Boolean = false, 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 onPositiveClick: (hours: Int, minutes: Int, seconds: Int) -> Unit) : ClockSelection
Select a time with hours, minutes and seconds.
Parameters
withButtonView
Show the dialog with the buttons view.
extraButton
An extra button that is aligned to the start of the dialog and 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.
onPositiveClick
The listener that returns the selected hours, minutes and seconds.
Constructors
Link copied to clipboard
constructor(withButtonView: Boolean = false, extraButton: SelectionButton? = null, onExtraButtonClick: () -> Unit? = null, negativeButton: SelectionButton? = BaseConstants.DEFAULT_NEGATIVE_BUTTON, onNegativeClick: () -> Unit? = null, positiveButton: SelectionButton = BaseConstants.DEFAULT_POSITIVE_BUTTON, onPositiveClick: (hours: Int, minutes: Int, seconds: Int) -> Unit)