Package-level declarations

Types

Link copied to clipboard

Optional customization for the full calendar pickers.

Link copied to clipboard

How a hosted month calendar looks and what it carries, for a Swift caller.

Link copied to clipboard

Optional customization for the dialogs.

Link copied to clipboard

Optional customization for the docked picker.

Link copied to clipboard
class NepaliEventInfo(val year: Int, val month: Int, val dayOfMonth: Int, val name: String, val kind: NepaliEventKind, val closesOffices: Boolean, val colorArgb: Int, val indicate: Boolean)

One thing on one day, as a Swift caller describes it: a public holiday, a festival, a programme, a meeting.

Link copied to clipboard

What the pickers should mark, for a Swift caller.

Link copied to clipboard

Optional customization for a single typed date field.

Link copied to clipboard

The colours every hosted picker, field and dialog draws with, shared by the whole app.

Link copied to clipboard

Which brightness the hosted pickers draw at.

Link copied to clipboard

Optional customization for the range calendars.

Link copied to clipboard

Optional customization for the paired start and end fields.

Link copied to clipboard

Optional customization for the wheel picker.

Functions

Link copied to clipboard
fun NepaliCalendarSystemToggleViewController(initialCalendarSystem: CalendarSystem, language: NepaliDatePickerLang, onHeightChange: (Float) -> Unit, onCalendarSystemChange: (CalendarSystem) -> Unit): UIViewController

Hosts the standalone B.S. / A.D. switch for a Swift caller.

Link copied to clipboard
fun NepaliCalendarViewController(initialSelectedDate: SimpleDate?, locale: NepaliDateLocale, yearRangeStart: Int, yearRangeEnd: Int, options: NepaliCalendarViewOptions?, events: NepaliEventOptions?, onHeightChange: (Float) -> Unit, onDaySelected: (CustomCalendar, NepaliDayStatus) -> Unit, onEventTapped: (NepaliCalendarEvent) -> Unit): UIViewController

Hosts the browsable NepaliCalendar for a Swift caller: a month grid that fills its frame, pages month by month and marks the days events names.

Link copied to clipboard
fun NepaliDateFieldViewController(initialValue: SimpleDate?, locale: NepaliDateLocale, dateFormat: NepaliDateFormatter.Pattern, yearRangeStart: Int, yearRangeEnd: Int, selectableDates: NepaliSelectableDates?, options: NepaliFieldOptions?, events: NepaliEventOptions?, onHeightChange: (Float) -> Unit, onValueChange: (SimpleDate?) -> Unit): UIViewController

Hosts a single typed date entry field.

Link copied to clipboard
fun NepaliDatePickerDialogViewController(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

Hosts NepaliDatePickerDialog with a calendar inside it.

Link copied to clipboard
fun NepaliDatePickerDockedViewController(initialSelectedDate: SimpleDate?, locale: NepaliDateLocale, yearRangeStart: Int, yearRangeEnd: Int, selectableDates: NepaliSelectableDates?, options: NepaliDockedOptions?, events: NepaliEventOptions?, onHeightChange: (Float) -> Unit, onDateSelected: (CustomCalendar?) -> Unit): UIViewController

Hosts NepaliDatePickerDocked, the compact text field that opens the calendar in a popup.

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

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

Link copied to clipboard
fun NepaliDatePickerViewController(initialSelectedDate: SimpleDate?, locale: NepaliDateLocale, yearRangeStart: Int, yearRangeEnd: Int, selectableDates: NepaliSelectableDates?, options: NepaliCalendarOptions?, events: NepaliEventOptions?, onHeightChange: (Float) -> Unit, onDateSelected: (CustomCalendar?) -> Unit): UIViewController

Hosts the full-size NepaliDatePicker for a Swift caller.

Link copied to clipboard
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

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

Link copied to clipboard
fun NepaliDateRangePickerViewController(initialSelectedStartDate: SimpleDate?, initialSelectedEndDate: SimpleDate?, locale: NepaliDateLocale, yearRangeStart: Int, yearRangeEnd: Int, selectableDates: NepaliSelectableDates?, options: NepaliRangeCalendarOptions?, events: NepaliEventOptions?, onHeightChange: (Float) -> Unit, onRangeSelected: (CustomCalendar?, CustomCalendar?) -> Unit): UIViewController

Hosts NepaliDateRangePicker, the two-ended calendar used to pick a start and an end date.

Link copied to clipboard
fun NepaliDaySummaryViewController(date: SimpleDate, locale: NepaliDateLocale, events: NepaliEventOptions?, onHeightChange: (Float) -> Unit): UIViewController

Hosts NepaliDaySummary on its own: whether the institution is shut on one Bikram Sambat day, why, and everything named on it.

Link copied to clipboard
fun NepaliMonthEventListViewController(year: Int, month: Int, locale: NepaliDateLocale, events: NepaliEventOptions?, onHeightChange: (Float) -> Unit, onEventTapped: (NepaliCalendarEvent) -> Unit): UIViewController

Hosts NepaliMonthEventList on its own: everything named in one Bikram Sambat month, in date order, with a festival that runs several days written as a single line.

Link copied to clipboard
fun NepaliWheelDatePickerViewController(initialDate: SimpleDate?, locale: NepaliDateLocale, yearRangeStart: Int, yearRangeEnd: Int, selectableDates: NepaliSelectableDates?, options: NepaliWheelOptions?, onHeightChange: (Float) -> Unit, onDateChange: (CustomCalendar) -> Unit): UIViewController

Hosts NepaliWheelDatePicker, the scrolling year/month/day wheel.