Builder

class Builder<S>

Used to create MaterialDatePicker instances with default and overridden settings

Types

Companion
Link copied to clipboard
object Companion

Properties

calendarConstraints
Link copied to clipboard
var calendarConstraints: CalendarConstraints? = null
dateSelector
Link copied to clipboard
val dateSelector: DateSelector<S>
inputMode
Link copied to clipboard
var inputMode: Int
overrideThemeResId
Link copied to clipboard
var overrideThemeResId: Int = 0
selection
Link copied to clipboard
var selection: S? = null
titleText
Link copied to clipboard
var titleText: CharSequence? = null
titleTextResId
Link copied to clipboard
var titleTextResId: Int = 0

Functions

build
Link copied to clipboard
fun build(): MaterialDatePicker<S>
Creates a MaterialDatePicker with the provided options.
setCalendarConstraints
Link copied to clipboard
fun setCalendarConstraints(bounds: CalendarConstraints?): MaterialDatePicker.Builder<S>
Sets the first, last, and starting month.
setInputMode
Link copied to clipboard
fun setInputMode(inputMode: Int): MaterialDatePicker.Builder<S>
Sets the input mode to start with.
setSelection
Link copied to clipboard
fun setSelection(selection: S): MaterialDatePicker.Builder<S>
setTheme
Link copied to clipboard
fun setTheme(@StyleRes() themeResId: Int): MaterialDatePicker.Builder<S>
Sets the theme controlling fullscreen mode as well as other styles.
setTitleText
Link copied to clipboard
fun setTitleText(charSequence: CharSequence?): MaterialDatePicker.Builder<S>
Sets the text used to guide the user at the top of the picker.
fun setTitleText(@StringRes() titleTextResId: Int): MaterialDatePicker.Builder<S>
Sets the text used to guide the user at the top of the picker.