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
Int

The currently selected minute (0-59).

Cmn
TimePickerSelectionMode

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

Cmn

Extension properties

Boolean

Indicates whether the selected time falls within the period from 12 PM inclusive to 12 AM non inclusive.

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).

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.

Extension properties

val TimePickerState.isPmBoolean

Indicates whether the selected time falls within the period from 12 PM inclusive to 12 AM non inclusive.