Source set: Common
public object TimePickerDialogDefaults
Default properties for a TimePickerDialog
Properties
containerColor
Source set: Common
public val containerColor: Color
Container color for TimePickerDialog
shape
Source set: Common
public val shape: Shape
Shape color for TimePickerDialog
richContainerColor
Source set: Common
public val richContainerColor: Color
Container color for a rich TimePickerDialog
richShape
Source set: Common
public val richShape: Shape
Shape color for a rich TimePickerDialog
MinHeightForTimePicker
Source set: Common
public val MinHeightForTimePicker: Dp = 300.dp
Min Screen Height required to display a TimePicker in Picker in mode
Functions
DisplayModeToggle
Source set: Common
@Composable
public fun DisplayModeToggle(
onDisplayModeChange: () -> Unit,
displayMode: TimePickerDisplayMode,
modifier: Modifier = Modifier,
)
A button that toggles the display mode of the time picker between TimePickerDisplayMode.Picker and TimePickerDisplayMode.Input.
Parameters
| onDisplayModeChange | called when the button is clicked |
| displayMode | the current display mode of the time picker |
| modifier | the Modifier to be applied to this button |
ScrollDisplayModeToggle
Source set: Common
@Composable
public fun ScrollDisplayModeToggle(
onDisplayModeChange: () -> Unit,
displayMode: TimePickerDisplayMode,
modifier: Modifier = Modifier,
)
A button that toggles the display mode of the time picker between TimePickerDisplayMode.Input and TimePickerDisplayMode.Scroll.
Parameters
| onDisplayModeChange | called when the button is clicked |
| displayMode | the current display mode of the time picker |
| modifier | the Modifier to be applied to this button |
Title
Source set: Common
@Composable
public fun Title(displayMode: TimePickerDisplayMode, modifier: Modifier = Modifier)
The title of the time picker dialog.
Parameters
| modifier | the Modifier to be applied to this title |
| displayMode | the current display mode of the time picker |