TimePickerState
Source set: Common
@Deprecated(message = "Maintained for binary compatibility", level = DeprecationLevel.HIDDEN)
public fun TimePickerState(
initialHour: Int,
initialMinute: Int,
is24Hour: Boolean,
): TimePickerState
Factory function for the default implementation of TimePickerState rememberTimePickerState should be used in most cases.
Parameters
| initialHour | starting hour for this state, will be displayed in the time picker when launched Ranges from 0 to 23 |
| initialMinute | starting minute for this state, will be displayed in the time picker when launched. Ranges from 0 to 59 |
| is24Hour | 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. |
TimePickerState
Source set: Common
public fun TimePickerState(
initialHour: Int,
initialMinute: Int,
is24Hour: Boolean,
initialSelection: TimePickerSelectionMode = TimePickerSelectionMode.Hour,
): TimePickerState
Factory function for the default implementation of TimePickerState rememberTimePickerState should be used in most cases.
Parameters
| initialHour | starting hour for this state, will be displayed in the time picker when launched Ranges from 0 to 23 |
| initialMinute | starting minute for this state, will be displayed in the time picker when launched. Ranges from 0 to 59 |
| is24Hour | 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. |
| initialSelection | starting selection mode for this state. |