NepaliEventInfo

class NepaliEventInfo(val year: Int, val month: Int, val dayOfMonth: Int, val name: String, val kind: NepaliEventKind, closesOffices: Boolean? = null, val colorArgb: Int = 0, val indicate: Boolean = false, val id: String? = null, val payload: String? = null)(source)

One thing on one day, as a View-based caller describes it: a public holiday, a festival, a programme, a meeting. Mirrors the iOS NepaliEventInfo field for field.

Constructors

Link copied to clipboard
constructor(year: Int, month: Int, dayOfMonth: Int, name: String, kind: NepaliEventKind, closesOffices: Boolean? = null, colorArgb: Int = 0, indicate: Boolean = false, id: String? = null, payload: String? = null)

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. Left null, the kind's own convention applies.

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
val 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.

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