NepaliDateRangeFieldViewController

fun NepaliDateRangeFieldViewController(initialStartValue: SimpleDate?, initialEndValue: SimpleDate?, locale: NepaliDateLocale, dateFormat: NepaliDateFormatter.Pattern, yearRangeStart: Int, yearRangeEnd: Int, selectableDates: NepaliSelectableDates?, options: NepaliRangeFieldOptions?, events: NepaliEventOptions?, onHeightChange: (Float) -> Unit, onRangeChange: (SimpleDate?, SimpleDate?) -> Unit): UIViewController(source)

Hosts the pair of typed entry fields for a date range.

options.outlined picks NepaliDateRangeTextField when true and the filled NepaliDateRangeField when false. The controller owns the field contents, so Swift only observes them through onRangeChange.

Parameters

initialStartValue

start date the fields open with, or null for empty.

initialEndValue

end date the fields open with, or null for empty.

locale

language, date format and digit script the fields render with.

dateFormat

digit layout the user types into.

yearRangeStart

first Bikram Sambat year accepted.

yearRangeEnd

last Bikram Sambat year accepted.

selectableDates

policy deciding which dates are valid, or null to accept every date.

options

appearance and behaviour knobs, or null for the library defaults.

onHeightChange

receives the content height in points, so the caller can size its frame.

onRangeChange

invoked whenever either field parses to a new value. An end that has not been typed yet arrives as null.