| java.lang.Object | |
| ↳ | android.provider.CalendarContract.Events |
Constants and helpers for the Events table, which contains details for individual events.
CALLER_IS_SYNCADAPTER should be set to true and
ACCOUNT_NAME and ACCOUNT_TYPE must be set in the Uri
parameters. See
appendQueryParameter(java.lang.String, java.lang.String)
for details on adding parameters. Sync adapters have write access to more
columns but are restricted to a single account at a time.
_ID of the event
should be provided either as an appended id to the Uri (
withAppendedId(Uri, long)) or as the first selection item--the
selection should start with "_id=?" and the first selectionArg should be
the _id of the event. Updates may also be done using a selection and no
id. Updating an event must respect the same rules as inserting and is
further restricted in the fields that can be written. See the section on
Writing to Events._ID as an appended
id on the Uri or using any standard selection. If an appended id is used
a selection is not allowed. There are two versions of delete: as an app
and as a sync adapter. An app delete will set the deleted column on an
event and remove all instances of that event. A sync adapter delete will
remove the event from the database and all associated data._ID is appended to the Uri.
Recurring events will only return a single row regardless of the number
of times that event repeats.TIMEZONE_UTC
and the time must correspond to a midnight boundary.CALENDAR_IDORGANIZERTITLEEVENT_LOCATIONDESCRIPTIONEVENT_COLORDTSTARTDTENDEVENT_TIMEZONEEVENT_END_TIMEZONEDURATIONALL_DAYRRULERDATEEXRULEEXDATEORIGINAL_IDORIGINAL_SYNC_IDORIGINAL_INSTANCE_TIMEORIGINAL_ALL_DAYACCESS_LEVELAVAILABILITYGUESTS_CAN_MODIFYGUESTS_CAN_INVITE_OTHERSGUESTS_CAN_SEE_GUESTSCUSTOM_APP_PACKAGECUSTOM_APP_URIUID_2445|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.provider.BaseColumns
| |||||||||||
From interface
android.provider.CalendarContract.SyncColumns
| |||||||||||
From interface
android.provider.CalendarContract.EventsColumns
| |||||||||||
From interface
android.provider.CalendarContract.CalendarColumns
| |||||||||||
From interface
android.provider.CalendarContract.CalendarSyncColumns
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CONTENT_EXCEPTION_URI | The content:// style URI for recurring event exceptions. | ||||||||||
| CONTENT_URI | The content:// style URL for interacting with events. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
The content:// style URI for recurring event exceptions. Insertions require an
appended event ID. Deletion of exceptions requires both the original event ID and
the exception event ID (see appendPath(String)).
The content:// style URL for interacting with events. Appending an
event id using withAppendedId(Uri, long) will
specify a single event.