AndroidEvent

abstract class AndroidEvent(val calendar: AndroidCalendar<AndroidEvent>)

Stores and retrieves VEVENT iCalendar objects (represented as Events) to/from the Android Calendar provider.

Extend this class to process specific fields of the event.

Important: To use recurrence exceptions, you MUST set _SYNC_ID and ORIGINAL_SYNC_ID in populateEvent() / buildEvent. Setting _ID and ORIGINAL_ID is not sufficient.

Constructors

Link copied to clipboard
constructor(calendar: AndroidCalendar<AndroidEvent>, values: ContentValues)

Creates a new object from an event which already exists in the calendar storage.

constructor(calendar: AndroidCalendar<AndroidEvent>, event: Event)

Creates a new object from an event which doesn't exist in the calendar storage yet.

constructor(calendar: AndroidCalendar<AndroidEvent>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var event: Event?
Link copied to clipboard
var id: Long?

Functions

Link copied to clipboard
fun add(): Uri

Saves an unsaved event into the calendar storage.

Link copied to clipboard

Adds or updates the calendar provider Events main row for this event.

Link copied to clipboard
fun delete(): Int

Deletes an existing event from the calendar storage.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun update(event: Event): Uri

Updates an already existing event in the calendar storage with the values from the instance.