SettingsDateTimePicker

fun SettingsDateTimePicker(value: Long?, onValueChange: (Long?) -> Unit, theme: NavigationSettingsTheme, @StringRes labelRes: Int = R.string.dgis_settings_date_time_picker_label, enabled: Boolean = true, @StringRes nullLabelRes: Int = R.string.dgis_settings_date_time_picker_null_label, @StringRes confirmLabelRes: Int = R.string.dgis_settings_date_time_picker_confirm, @StringRes resetLabelRes: Int = R.string.dgis_settings_date_time_picker_reset)

Date/time picker that opens a wheel-picker bottom sheet.

When value is null the row shows nullLabelRes as a placeholder. Tapping Reset inside the sheet returns null via onValueChange.

Parameters

value

Current selection as epoch-millis, or null when unset.

onValueChange

Called with the confirmed epoch-millis, or null on reset.

theme

Color and typography tokens.

labelRes

String resource for the row label.

enabled

When false the row is visually dimmed and the sheet cannot be opened.

nullLabelRes

String resource shown when value is null.

confirmLabelRes

String resource for the confirm button inside the sheet.

resetLabelRes

String resource for the reset button inside the sheet.