Builder

class Builder

Used to create MaterialTimePicker instances.

Constructors

Builder
Link copied to clipboard
fun Builder()

Properties

inputMode
Link copied to clipboard
var inputMode: Int = 0
overrideThemeResId
Link copied to clipboard
var overrideThemeResId: Int = 0
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(): MaterialTimePicker
Creates a MaterialTimePicker with the provided options.
setHour
Link copied to clipboard
fun setHour(@IntRange(from = 0.toLong(), to = 23.toLong()hour: Int): MaterialTimePicker.Builder
Sets the hour with which to start the time picker.
setInputMode
Link copied to clipboard
fun setInputMode(inputMode: Int): MaterialTimePicker.Builder
Sets the input mode with which to start the time picker.
setMinute
Link copied to clipboard
fun setMinute(@IntRange(from = 0.toLong(), to = 60.toLong()minute: Int): MaterialTimePicker.Builder
Sets the minute with which to start the time picker.
setTheme
Link copied to clipboard
fun setTheme(@StyleRes() themeResId: Int): MaterialTimePicker.Builder
Sets the theme for the time picker.
setTimeFormat
Link copied to clipboard
fun setTimeFormat(format: Int): MaterialTimePicker.Builder
Sets the time format for the time picker.
setTitleText
Link copied to clipboard
fun setTitleText(charSequence: CharSequence?): MaterialTimePicker.Builder
Sets the text used to guide the user at the top of the picker.
fun setTitleText(@StringRes() titleTextResId: Int): MaterialTimePicker.Builder
Sets the text used to guide the user at the top of the picker.