Android Calendar
Represents a locally stored calendar, containing AndroidEvent2 objects. Communicates with the Android Contacts 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
Calls AndroidCalendarProvider.deleteCalendar for this calendar.
Deletes an event row.
Gets the first event row that matches the given query.
Queries events from this calendar.
Gets a specific event, identified by its ID, from this calendar.
Gets the event row of a specific event, identified by its ID, from this calendar.
Iterates event rows from this calendar.
Finds the amount of instances this event has. Exceptions generate their own instances and are not taken into account by this method.
Calls AndroidCalendarProvider.readCalendarSyncState for this calendar.
Calls AndroidCalendarProvider.updateCalendar for this calendar.
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.