Time Picker State
class TimePickerState(initialHour: Int, initialMinute: Int, initialPeriod: TimePeriod, val timeFormat: TimeFormat)
State holder for the TimePicker.
Manages the state of the hour, minute, and period (AM/PM) pickers. Internal picker states are not directly accessible to prevent inconsistent state modifications.
Parameters
initial Hour
The initial hour to be selected.
initial Minute
The initial minute to be selected.
initial Period
The initial period (AM/PM) to be selected.
time Format
The time format (12-hour or 24-hour).
Constructors
Link copied to clipboard
constructor(initialHour: Int, initialMinute: Int, initialPeriod: TimePeriod, timeFormat: TimeFormat)
Creates a TimePickerState from a LocalTime.
Properties
Link copied to clipboard
The currently selected hour. For 12-hour format: 1-12, for 24-hour format: 0-23.
Link copied to clipboard
The selected hour converted to 24-hour clock time (0-23).
Link copied to clipboard
The currently selected minute (0-59).
Link copied to clipboard
The currently selected period (AM/PM). Only relevant when using 12-hour format.
Link copied to clipboard
The selected time represented as LocalTime.
Link copied to clipboard