MaterialTimePicker

class MaterialTimePicker : DialogFragment, TimePickerView.OnDoubleTapListener

A Dialog with a clock display and a clock face to choose the time.

For more information, see the component developer guidance and design guidelines.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Builder
Used to create MaterialTimePicker instances.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val inputMode: Int

Functions

Link copied to clipboard
The supplied listener is called when the user cancels the picker via back button or a touch outside the view.
Link copied to clipboard
The supplied listener is called whenever the DialogFragment is dismissed, no matter how it is dismissed.
Link copied to clipboard
The supplied listener is called when the user clicks the cancel button.
Link copied to clipboard
The supplied listener is called when the user confirms a valid selection.
Link copied to clipboard
Removes all listeners added via addOnCancelListener.
Link copied to clipboard
Removes all listeners added via addOnDismissListener.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@IntRange(from = 0, to = 23)
open fun getHour(): Int
Returns the hour of day in the range [0, 23].
Link copied to clipboard
@IntRange(from = 0, to = 59)
open fun getMinute(): Int
Returns the minute in the range [0, 59].
Link copied to clipboard
fun onCancel(@NonNull dialogInterface: DialogInterface)
Link copied to clipboard
open fun onCreate(@Nullable bundle: Bundle)
Link copied to clipboard
Link copied to clipboard
fun onCreateView(@NonNull layoutInflater: LayoutInflater, @Nullable viewGroup: ViewGroup, @Nullable bundle: Bundle): View
Link copied to clipboard
open fun onDestroyView()
Link copied to clipboard
fun onDismiss(@NonNull dialogInterface: DialogInterface)
Link copied to clipboard
Link copied to clipboard
open fun onSaveInstanceState(@NonNull bundle: Bundle)
Link copied to clipboard
open fun onViewCreated(@NonNull view: View, @Nullable bundle: Bundle)
Link copied to clipboard
Removes a listener previously added via addOnCancelListener.
Link copied to clipboard
Removes a listener previously added via addOnDismissListener.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setCancelable(cancelable: Boolean)
Link copied to clipboard
open fun setHour(@IntRange(from = 0, to = 23) hour: Int)
Sets the hour of day in the range [0, 23].
Link copied to clipboard
open fun setMinute(@IntRange(from = 0, to = 59) minute: Int)
Sets the minute in the range [0, 59].