androidx.compose.material3
TimePickerState
Interface
No hand-written docs yet.
A state object that can be hoisted to observe the time picker state. It holds the current values and allows for directly setting those values.
interface TimePickerState
How to get one
Create it
TimePickerState(initialHour: Int, initialMinute: Int, is24Hour: Boolean)
Ready-made values and functions that return it
Used by
Parameters that take a TimePickerState.
Properties
minute
val minute: Int
The currently selected minute (0-59).
hour
val hour: Int
The currently selected hour (0-23).
hourInputSince 1.10
val hourInput: Int
The input for the hour.
minuteInputSince 1.10
val minuteInput: Int
The input for the minute.
is24hour
val is24hour: Boolean
Indicates whether the time picker uses 24-hour format (true) or 12-hour format with AM/PM (false).
selection
val selection: TimePickerSelectionMode
Specifies whether the hour or minute component is being actively selected by the user.
Library docs
A state object that can be hoisted to observe the time picker state. It holds the current values and allows for directly setting those values.