android String To Recurrence Set
fun <T : DateListProperty> androidStringToRecurrenceSet(dbStr: String, tzRegistry: TimeZoneRegistry, allDay: Boolean, exclude: Long? = null, generator: (DateList) -> T): T
Takes a formatted string as provided by the Android calendar provider and returns a DateListProperty constructed from these values.
Return
instance of "type" containing the parsed dates/times from the string
Parameters
db Str
formatted string from Android calendar provider (RDATE/EXDATE field) expected format: "TZID;date1,date2,date3" where date is "yyyymmddThhmmssZ"
tz Registry
time zone registry
all Day
true: list will contain DATE values; false: list will contain DATE_TIME values
exclude
this time stamp won't be added to the DateListProperty
generator
generates the DateListProperty; must call the constructor with the one argument of type DateList
Throws
when the string cannot be parsed