NepaliDatePickerFullScreenDialogViewController

fun NepaliDatePickerFullScreenDialogViewController(initialSelectedDate: SimpleDate?, locale: NepaliDateLocale, yearRangeStart: Int, yearRangeEnd: Int, selectableDates: NepaliSelectableDates?, calendarOptions: NepaliCalendarOptions?, options: NepaliDialogOptions?, events: NepaliEventOptions?, onHeightChange: (Float) -> Unit, onConfirm: (CustomCalendar?) -> Unit, onDismiss: () -> Unit): UIViewController(source)

Hosts NepaliDatePickerFullScreenDialog, the edge-to-edge variant of the dialog.

Add it over the app's own content, the same way NepaliDatePickerDialogViewController is added.

Parameters

initialSelectedDate

date selected when the dialog opens, or null for no selection.

locale

language, date format and digit script the dialog renders with.

yearRangeStart

first Bikram Sambat year the picker allows.

yearRangeEnd

last Bikram Sambat year the picker allows.

selectableDates

policy deciding which dates are enabled, or null to allow every date.

calendarOptions

knobs for the calendar inside the dialog, or null for the defaults.

options

dialog chrome, or null for the defaults. tonalElevation is ignored here, because a full-screen dialog has no floating surface.

onHeightChange

receives the content height in points. Normally ignored, as above.

onConfirm

invoked with the selection when the confirming button is tapped.

onDismiss

invoked when the dialog is dismissed without confirming.