NepaliEventInfo

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)(source)

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

Kotlin default arguments do not cross the Objective-C bridge, so every field is spelled out.

Constructors

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

Properties

Link copied to clipboard

whether the institution is shut for this. A public holiday is true; a school programme or a meeting is false, and the day stays a working day.

Link copied to clipboard

the color to draw this in as 0xAARRGGBB, or 0 to take the palette slot its kind maps to.

Link copied to clipboard
Link copied to clipboard
var id: String?

an identifier the app can correlate back to its own record, carried through untouched and handed back when the entry is tapped. Days of one span that share it are one row of a month's list rather than several. Assigned after construction, so the initializer stays the one Swift callers already write.

Link copied to clipboard

whether the day gets a dot for this. Leave it off for something that only gives the day its colour, such as a public holiday, and on for an app's own events, so the dots keep meaning "something is scheduled".

Link copied to clipboard
Link copied to clipboard
val month: Int
Link copied to clipboard
Link copied to clipboard

anything else the app wants back with it, as an opaque string: JSON, a URL, an identifier list. The library never parses it.

Link copied to clipboard
val year: Int