EventHandler

Maps contact events (like birthdays and anniversaries) to vCard properties.

Android stores the events as date/date-time strings, so we have to parse these strings. Unfortunately, the format is not specified in the ContactsContract ("as the user entered it"): https://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Event?hl=en#START_DATE

At least we know the formats used by AOSP Contacts: https://android.googlesource.com/platform/packages/apps/Contacts/+/c326c157541978c180be4e3432327eceb1e66637/src/com/android/contacts/util/CommonDateUtils.java#25 so we support at least these formats.

Functions

Link copied to clipboard
open override fun forMimeType(): String
Link copied to clipboard
open override fun handle(values: ContentValues, contact: Contact)

Processes the given data.