DateTime

data class DateTime(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 dateFormatStyle: FormatStyle = FormatStyle.MEDIUM, val timeFormatStyle: FormatStyle = FormatStyle.SHORT, val selectedTime: LocalTime? = null, val selectedDate: LocalDate? = null, val startWithTime: Boolean = false, val onPositiveClick: (LocalDateTime) -> Unit) : DateTimeSelection

Select a date & time.

Parameters

withButtonView

If true, the dialog will be shown with 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.

dateFormatStyle

The style of the date format.

timeFormatStyle

The style of the time format.

selectedTime

The selected time.

selectedDate

The selected date.

startWithTime

If the time selection should be shown before the date selection.

onPositiveClick

The listener that returns the selected date-time.

Constructors

Link copied to clipboard
constructor(withButtonView: Boolean = true, extraButton: SelectionButton? = null, onExtraButtonClick: () -> Unit? = null, negativeButton: SelectionButton? = BaseConstants.DEFAULT_NEGATIVE_BUTTON, onNegativeClick: () -> Unit? = null, positiveButton: SelectionButton = BaseConstants.DEFAULT_POSITIVE_BUTTON, dateFormatStyle: FormatStyle = FormatStyle.MEDIUM, timeFormatStyle: FormatStyle = FormatStyle.SHORT, selectedTime: LocalTime? = null, selectedDate: LocalDate? = null, startWithTime: Boolean = false, onPositiveClick: (LocalDateTime) -> Unit)

Properties

Link copied to clipboard
open override val dateFormatStyle: FormatStyle
Link copied to clipboard
open override val extraButton: SelectionButton? = null
Link copied to clipboard
open override val negativeButton: SelectionButton?
Link copied to clipboard
open override val onExtraButtonClick: () -> Unit? = null
Link copied to clipboard
open override val onNegativeClick: () -> Unit? = null
Link copied to clipboard
Link copied to clipboard
open override val positiveButton: SelectionButton
Link copied to clipboard
val selectedDate: LocalDate? = null
Link copied to clipboard
val selectedTime: LocalTime? = null
Link copied to clipboard
val startWithTime: Boolean = false
Link copied to clipboard
open override val timeFormatStyle: FormatStyle
Link copied to clipboard
open override val withButtonView: Boolean = true