Recurrence serialization - maltaisn/recurpickerlib GitHub Wiki
In order to save the recurrence in a bundle or store the recurrence to permanent storage, you have three choices:
-
Recurrenceis Parcelable and can be written to a Bundle. -
RRuleFormat: This is the recommended way of storing recurrences to permanent storage. This class will encode aRecurrenceobject to a RFC 5545-compliant string that looks like this:RRULE:FREQ=WEEKLY;INTERVAL=10;BYDAY=SU,MO,TU,WE,TH,FR,SA.- Encoding:
RRuleFormatter().format(Recurrence): String. - Decoding:
RRuleFormatter().parse(String): Recurrence.
- Encoding:
-
: Encodes recurrences to a byte array.RecurrenceSerializerRRuleFormatis preferred.- Encoding:
RecurrenceSerializer().write(Recurrence): ByteArray. - Decoding:
RecurrenceSerializer().read(ByteArray): Recurrence.
- Encoding: