TimePickerState



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.

See also
rememberTimePickerState

to construct the default implementation.

Summary

Public properties

Int

The currently selected hour (0-23).

Cmn
Boolean

Indicates whether the time picker uses 24-hour format (true) or 12-hour format with AM/PM (false).

Cmn
Boolean

Indicates whether the selected time falls within the afternoon period (12 PM - 12 AM).

Cmn
Int

The currently selected minute (0-59).

Cmn
TimePickerSelectionMode

Specifies whether the hour or minute component is being actively selected by the user.

Cmn

Public properties

hour

var hourInt

The currently selected hour (0-23).

is24hour

var is24hourBoolean

Indicates whether the time picker uses 24-hour format (true) or 12-hour format with AM/PM (false).

isAfternoon

var isAfternoonBoolean

Indicates whether the selected time falls within the afternoon period (12 PM - 12 AM).

minute

var minuteInt

The currently selected minute (0-59).

selection

var selectionTimePickerSelectionMode

Specifies whether the hour or minute component is being actively selected by the user.