DateTimePicker

data class DateTimePicker(val message: String?, val cancelButtonTitle: String, val confirmButtonTitle: String, val type: DateTimePicker.Type, val locale: KalugaLocale, val selectedDate: KalugaDate)

An object that represents a date-time picker view

Constructors

Link copied to clipboard
constructor(message: String?, cancelButtonTitle: String, confirmButtonTitle: String, type: DateTimePicker.Type, locale: KalugaLocale, selectedDate: KalugaDate)

Types

Link copied to clipboard
class Builder(type: DateTimePicker.Type = Type.TimeType)

Builder class for creating a DateTimePicker

Link copied to clipboard
sealed class Type

Date Type to select

Properties

Link copied to clipboard

the text to show in the button to cancel picking a date

Link copied to clipboard

the text to show in the button to confirm picking a date

Link copied to clipboard

the KalugaLocale used for representing time in the date-time picker

Link copied to clipboard

(optional) message to show in the date-time picker

Link copied to clipboard

the KalugaDate that the date-time picker will use as a base for picking the date. This will determine the initial time/day to be selected in the picker, depending on the type. Upon completion, a copy of this date modified with the selected date or time will be provided, keeping timezone and components not selected the same.

Link copied to clipboard

the Type of date time picker