androidx.compose.material3
rememberTimePickerState
Function
No hand-written docs yet.
Creates a TimePickerState for a time picker that is remembered across compositions and configuration changes.
Parameters
@Composable
fun rememberTimePickerState(
initialHour: Int = 0,
initialMinute: Int = 0,
is24Hour: Boolean = is24HourFormat,
): TimePickerState
initialHour: IntOptional
initialHour: IntOptionalDefault: 0
starting hour for this state, will be displayed in the time picker when launched. Ranges from 0 to 23
initialMinute: IntOptional
initialMinute: IntOptionalDefault: 0
starting minute for this state, will be displayed in the time picker when launched. Ranges from 0 to 59
is24Hour: BooleanOptional
is24Hour: BooleanOptionalDefault: is24HourFormat
The format for this time picker. false for 12 hour format with an AM/PM toggle or true for 24 hour format without toggle. Defaults to follow system setting.
Library docs
Creates a TimePickerState for a time picker that is remembered across compositions and
configuration changes.