eventsFromReader

fun eventsFromReader(reader: Reader, properties: MutableMap<String, String>? = null): List<Event>

Parses an iCalendar resource, applies at.bitfire.ical4android.validation.ICalPreprocessor and EventValidator to increase compatibility and extracts the VEVENTs.

Return

array of filled Event data objects (may have size 0)

Parameters

reader

where the iCalendar is taken from

properties

Known iCalendar properties (like CALENDAR_NAME) will be put into this map. Key: property name; value: property value

Throws

on I/O errors

ParserException

when the iCalendar can't be parsed