Builder

class Builder

Used to create MaterialTimePicker instances.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Creates a MaterialTimePicker with the provided options.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setHour(@IntRange(from = 0, to = 23) hour: Int): MaterialTimePicker.Builder
Sets the hour with which to start the time picker.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setInputMode(inputMode: Int): MaterialTimePicker.Builder
Sets the input mode with which to start the time picker.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setMinute(@IntRange(from = 0, to = 59) minute: Int): MaterialTimePicker.Builder
Sets the minute with which to start the time picker.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setNegativeButtonText(@StringRes negativeButtonTextResId: Int): MaterialTimePicker.Builder
@CanIgnoreReturnValue
open fun setNegativeButtonText(@Nullable negativeButtonText: CharSequence): MaterialTimePicker.Builder
Sets the text used in the negative action button.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setPositiveButtonText(@StringRes positiveButtonTextResId: Int): MaterialTimePicker.Builder
@CanIgnoreReturnValue
open fun setPositiveButtonText(@Nullable positiveButtonText: CharSequence): MaterialTimePicker.Builder
Sets the text used in the positive action button.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setTheme(@StyleRes themeResId: Int): MaterialTimePicker.Builder
Sets the theme for the time picker.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setTimeFormat(format: Int): MaterialTimePicker.Builder
Sets the time format for the time picker.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setTitleText(@StringRes titleTextResId: Int): MaterialTimePicker.Builder
@CanIgnoreReturnValue
open fun setTitleText(@Nullable charSequence: CharSequence): MaterialTimePicker.Builder
Sets the text used to guide the user at the top of the picker.