AndroidEvent

class AndroidEvent(val calendar: AndroidCalendar)

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, values: ContentValues)

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

constructor(calendar: AndroidCalendar, event: Event, syncId: String?, eTag: String? = null, scheduleTag: String? = null, flags: Int = 0)

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

constructor(calendar: AndroidCalendar)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var eTag: String?
Link copied to clipboard
var event: Event?

Returns the full event data, either from event or, if event is null, by reading event number id from the Android calendar storage.

Link copied to clipboard
var flags: Int
Link copied to clipboard
var id: Long?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun add(): Uri

Saves the unsaved event into the calendar storage.

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(values: ContentValues)

fun update(event: Event): Uri

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