TimeScroll
Source set: Common
@Composable
public fun TimeScroll(
state: TimePickerState,
shapes: TimePickerShapes,
modifier: Modifier = Modifier,
colors: TimePickerColors = TimePickerDefaults.vibrantColors(),
)
Parameters
| state | state for this time picker, allows to subscribe to changes to TimePickerState.hour and TimePickerState.minute, and set the initial time for this picker |
| shapes | the TimePickerShapes that will be used to resolve the shapes used for this time input in different states |
| modifier | the Modifier to be applied to this time scroll picker |
| colors | colors TimePickerColors that will be used to resolve the colors used for this time input in different states. See TimePickerDefaults.vibrantColors. |
TimeScroll
Source set: Common
@Composable
public fun TimeScroll(
state: TimePickerState,
shapes: TimePickerShapes,
toggle: @Composable () -> Unit,
modifier: Modifier = Modifier,
colors: TimePickerColors = TimePickerDefaults.vibrantColors(),
)
Parameters
| state | state for this timepicker, allows to subscribe to changes to TimePickerState.hour and TimePickerState.minute, and set the initial time for this picker. |
| shapes | the TimePickerShapes that will be used to resolve the shapes used for this time input in different states. |
| toggle | optional toggle to switch between different picker modes, e.g., switching between TimeInput and TimeScroll. |
| modifier | the Modifier to be applied to this time input |
| colors | colors TimePickerColors that will be used to resolve the colors used for this time input in different states. See TimePickerDefaults.vibrantColors. |