timePickerSemantics

fun timePickerSemantics(hourPickerLabel: String? = "Hour", minutePickerLabel: String? = "Minute", periodPickerLabel: String? = "AM/PM", previousItemActionLabel: String? = PreviousItemActionLabel, nextItemActionLabel: String? = NextItemActionLabel): TimePickerSemantics

Creates semantics configuration for a time picker.

Shared previous/next action labels are applied to all child picker columns. Use TimePickerSemantics.copy with semantics when one column needs a custom label.

Return

A TimePickerSemantics instance with the specified semantics behavior.

Parameters

hourPickerLabel

Accessibility label for the hour picker. Pass null to omit the picker label prefix.

minutePickerLabel

Accessibility label for the minute picker. Pass null to omit the picker label prefix.

periodPickerLabel

Accessibility label for the AM/PM picker in 12-hour time. Pass null to omit the picker label prefix.

previousItemActionLabel

Accessibility action label used by child pickers to select the previous item.

nextItemActionLabel

Accessibility action label used by child pickers to select the next item.