TimePickerState

constructor(initialHour: Int, initialMinute: Int, initialPeriod: TimePeriod, timeFormat: TimeFormat)

Parameters

initialHour

The initial hour to be selected.

initialMinute

The initial minute to be selected.

initialPeriod

The initial period (AM/PM) to be selected.

timeFormat

The time format (12-hour or 24-hour).


constructor(initialTime: LocalTime, timeFormat: TimeFormat = TimeFormat.HOUR_24)

Creates a TimePickerState from a LocalTime.

When timeFormat is TimeFormat.HOUR_12, the hour is converted to the format-hour range and the AM/PM period is derived from initialTime.