Builder

class Builder<S>

Used to create MaterialDatePicker instances with default and overridden settings

Functions

Link copied to clipboard
Creates a MaterialDatePicker with the provided options.
Link copied to clipboard
Sets the Builder's selection manager to the provided DateSelector.
Link copied to clipboard
Used to create a Builder that allows for choosing a single date in the MaterialDatePicker.
Link copied to clipboard
Used to create a Builder that allows for choosing a date range in the MaterialDatePicker.
Link copied to clipboard
Sets the first, last, and starting month.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setDayViewDecorator(@Nullable dayViewDecorator: DayViewDecorator): MaterialDatePicker.Builder<S>
Link copied to clipboard
@CanIgnoreReturnValue
open fun setInputMode(inputMode: Int): MaterialDatePicker.Builder<S>
Sets the input mode to start with.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setNegativeButtonContentDescription(@StringRes contentDescriptionId: Int): MaterialDatePicker.Builder<S>
@CanIgnoreReturnValue
open fun setNegativeButtonContentDescription(@Nullable contentDescription: CharSequence): MaterialDatePicker.Builder<S>
Sets the content description used in the negative button
Link copied to clipboard
@CanIgnoreReturnValue
open fun setNegativeButtonText(@StringRes textId: Int): MaterialDatePicker.Builder<S>
Sets the text used in the negative button
Link copied to clipboard
@CanIgnoreReturnValue
open fun setPositiveButtonContentDescription(@StringRes contentDescriptionId: Int): MaterialDatePicker.Builder<S>
@CanIgnoreReturnValue
open fun setPositiveButtonContentDescription(@Nullable contentDescription: CharSequence): MaterialDatePicker.Builder<S>
Sets the content description used in the positive button
Link copied to clipboard
@CanIgnoreReturnValue
open fun setPositiveButtonText(@StringRes textId: Int): MaterialDatePicker.Builder<S>
Sets the text used in the positive button
Link copied to clipboard
@CanIgnoreReturnValue
open fun setSelection(selection: S): MaterialDatePicker.Builder<S>
Link copied to clipboard
Sets the formatter that will be used to input dates using a keyboard.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setTheme(@StyleRes themeResId: Int): MaterialDatePicker.Builder<S>
Sets the theme controlling fullscreen mode as well as other styles.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setTitleText(@StringRes titleTextResId: Int): MaterialDatePicker.Builder<S>
@CanIgnoreReturnValue
open fun setTitleText(@Nullable charSequence: CharSequence): MaterialDatePicker.Builder<S>
Sets the text used to guide the user at the top of the picker.