ICalPreprocessor

Applies some rules to increase compatibility of parsed (incoming) iCalendars:

  • CreatedPropertyRule to make sure CREATED is UTC

  • DatePropertyRule, DateListPropertyRule to rename Outlook-specific TZID parameters (like "W. Europe Standard Time" to an Android-friendly name like "Europe/Vienna")

Functions

Link copied to clipboard
fun preprocessCalendar(calendar: Calendar)

Applies the set of rules (see class definition) to a given calendar object.

Link copied to clipboard

Applies streamPreprocessors to a given Reader that reads an iCalendar object in order to repair some things that must be fixed before parsing.