Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun fromReader(reader: Reader, properties: MutableMap<String, String>? = null): Calendar

Parses an iCalendar resource and applies ICalPreprocessor to increase compatibility.

Link copied to clipboard
fun minifyVTimeZone(originalTz: VTimeZone, start: Date?): VTimeZone

Minifies a VTIMEZONE so that only these observances are kept:

Link copied to clipboard
fun softValidate(ical: Calendar)

Validates an iCalendar resource.

Link copied to clipboard
fun timezoneDefToTzId(timezoneDef: String): String?

Takes a string with a timezone definition and returns the time zone ID.

Link copied to clipboard
fun vAlarmToMin(alarm: VAlarm, reference: ICalendar, allowRelEnd: Boolean): Pair<Related, Int>?

Calculates the minutes before/after an event/task a given alarm occurs.

Link copied to clipboard
fun ProdId.withUserAgents(userAgents: List<String>): ProdId

Extends the given PRODID with the user agents (typically calendar app name and version). This way the PRODID does not only identify the app that actually produces the iCalendar, but also the used front-end app, which may be helpful when debugging the iCalendar.