Android Calendar
Represents a locally stored calendar containing events, each represented by an Entity. Communicates with the Android calendar provider which uses an SQLite database to store the events.
Methods that use ContentValues operate directly on rows of the Events table. Methods that use Entity operate on EventsEntity URIs to access the Events rows together with associated data rows (reminders, attendees etc.)
Parameters
calendar provider
content values as read from the calendar provider; android.provider.BaseColumns._ID must be set
Throws
when Calendars._ID is not set
Properties
see Calendars._ID
see Calendars.NAME
Functions
Counts the number of events in this calendar that match the given selection criteria.
Calls AndroidCalendarProvider.deleteCalendar for this calendar.
Deletes all events of this calendar from the local storage.
Marks dirty events
Deletes an event row.
Gets the first event row that matches the given query.
Gets the event row of a specific event, identified by its ID, from this calendar.
Iterates event rows from this calendar.
Queries the Instances.CONTENT_URI to finds the number of instances of the given event, excluding deleted and canceled exceptions.
Calls AndroidCalendarProvider.readCalendarSyncState for this calendar.
Calls AndroidCalendarProvider.updateCalendar for this calendar and merges newValues into the cached values.
Updates an event and applies the eventStatus=null workaround, if necessary.
Enqueues an update of an event and applies the eventStatus=null workaround, if necessary.
Updates a specific event's main row with the given values. Doesn't influence data rows.
Updates event rows in this calendar.
Calls AndroidCalendarProvider.writeCalendarSyncState for this calendar.