EventValidator

Validates events and tries to repair broken events, since sometimes CalendarStorage or servers respond with invalid event definitions.

This class should not throw exceptions, but try to repair as much as possible instead.

This class is applied

  • once to every event after completely reading an iCalendar, and

  • to every event when writing an iCalendar.

Functions

Link copied to clipboard
fun repair(event: Event)

Searches for some invalid conditions and fixes them.