public static final class CalendarContract.Events extends Object implements BaseColumns, CalendarContract.SyncColumns, CalendarContract.EventsColumns, CalendarContract.CalendarColumns
CalendarContract.CALLER_IS_SYNCADAPTER
should be set to true and
CalendarContract.SyncColumns.ACCOUNT_NAME
and CalendarContract.SyncColumns.ACCOUNT_TYPE
must be set in the Uri
parameters. See
Uri.Builder#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.
BaseColumns._ID
of the event
should be provided either as an appended id to the Uri (
ContentUris.withAppendedId(android.net.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.BaseColumns._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.BaseColumns._ID
is appended to the Uri.
Recurring events will only return a single row regardless of the number
of times that event repeats.Time.TIMEZONE_UTC
and the time must correspond to a midnight boundary.CalendarContract.EventsColumns.CALENDAR_ID
CalendarContract.EventsColumns.ORGANIZER
CalendarContract.EventsColumns.TITLE
CalendarContract.EventsColumns.EVENT_LOCATION
CalendarContract.EventsColumns.DESCRIPTION
CalendarContract.EventsColumns.EVENT_COLOR
CalendarContract.EventsColumns.DTSTART
CalendarContract.EventsColumns.DTEND
CalendarContract.EventsColumns.EVENT_TIMEZONE
CalendarContract.EventsColumns.EVENT_END_TIMEZONE
CalendarContract.EventsColumns.DURATION
CalendarContract.EventsColumns.ALL_DAY
CalendarContract.EventsColumns.RRULE
CalendarContract.EventsColumns.RDATE
CalendarContract.EventsColumns.EXRULE
CalendarContract.EventsColumns.EXDATE
CalendarContract.EventsColumns.ORIGINAL_ID
CalendarContract.EventsColumns.ORIGINAL_SYNC_ID
CalendarContract.EventsColumns.ORIGINAL_INSTANCE_TIME
CalendarContract.EventsColumns.ORIGINAL_ALL_DAY
CalendarContract.EventsColumns.ACCESS_LEVEL
CalendarContract.EventsColumns.AVAILABILITY
CalendarContract.EventsColumns.GUESTS_CAN_MODIFY
CalendarContract.EventsColumns.GUESTS_CAN_INVITE_OTHERS
CalendarContract.EventsColumns.GUESTS_CAN_SEE_GUESTS
CalendarContract.EventsColumns.CUSTOM_APP_PACKAGE
CalendarContract.EventsColumns.CUSTOM_APP_URI
CalendarContract.EventsColumns.UID_2445
CalendarContract.SyncColumns.DIRTY
CalendarContract.SyncColumns._SYNC_ID
CalendarContract.EventsColumns.SYNC_DATA1
CalendarContract.EventsColumns.SYNC_DATA2
CalendarContract.EventsColumns.SYNC_DATA3
CalendarContract.EventsColumns.SYNC_DATA4
CalendarContract.EventsColumns.SYNC_DATA5
CalendarContract.EventsColumns.SYNC_DATA6
CalendarContract.EventsColumns.SYNC_DATA7
CalendarContract.EventsColumns.SYNC_DATA8
CalendarContract.EventsColumns.SYNC_DATA9
CalendarContract.EventsColumns.SYNC_DATA10
Modifier and Type | Field and Description |
---|---|
static Uri |
CONTENT_EXCEPTION_URI
The content:// style URI for recurring event exceptions.
|
static Uri |
CONTENT_URI
The content:// style URL for interacting with events.
|
static String[] |
PROVIDER_WRITABLE_COLUMNS
These are columns that should only ever be updated by the provider,
either because they are views mapped to another table or because they
are used for provider only functionality.
|
static String[] |
SYNC_WRITABLE_COLUMNS
These fields are only writable by a sync adapter.
|
_COUNT, _ID
_SYNC_ID, ACCOUNT_NAME, ACCOUNT_TYPE, CAN_PARTIALLY_UPDATE, DELETED, DIRTY
CAL_SYNC1, CAL_SYNC10, CAL_SYNC2, CAL_SYNC3, CAL_SYNC4, CAL_SYNC5, CAL_SYNC6, CAL_SYNC7, CAL_SYNC8, CAL_SYNC9
ACCESS_CONFIDENTIAL, ACCESS_DEFAULT, ACCESS_LEVEL, ACCESS_PRIVATE, ACCESS_PUBLIC, ALL_DAY, AVAILABILITY, AVAILABILITY_BUSY, AVAILABILITY_FREE, AVAILABILITY_TENTATIVE, CALENDAR_ID, CAN_INVITE_OTHERS, CUSTOM_APP_PACKAGE, CUSTOM_APP_URI, DESCRIPTION, DISPLAY_COLOR, DTEND, DTSTART, DURATION, EVENT_COLOR, EVENT_COLOR_KEY, EVENT_END_TIMEZONE, EVENT_LOCATION, EVENT_TIMEZONE, EXDATE, EXRULE, GUESTS_CAN_INVITE_OTHERS, GUESTS_CAN_MODIFY, GUESTS_CAN_SEE_GUESTS, HAS_ALARM, HAS_ATTENDEE_DATA, HAS_EXTENDED_PROPERTIES, IS_ORGANIZER, LAST_DATE, LAST_SYNCED, ORGANIZER, ORIGINAL_ALL_DAY, ORIGINAL_ID, ORIGINAL_INSTANCE_TIME, ORIGINAL_SYNC_ID, RDATE, RRULE, SELF_ATTENDEE_STATUS, STATUS, STATUS_CANCELED, STATUS_CONFIRMED, STATUS_TENTATIVE, SYNC_DATA1, SYNC_DATA10, SYNC_DATA2, SYNC_DATA3, SYNC_DATA4, SYNC_DATA5, SYNC_DATA6, SYNC_DATA7, SYNC_DATA8, SYNC_DATA9, TITLE, UID_2445
ALLOWED_ATTENDEE_TYPES, ALLOWED_AVAILABILITY, ALLOWED_REMINDERS, CAL_ACCESS_CONTRIBUTOR, CAL_ACCESS_EDITOR, CAL_ACCESS_FREEBUSY, CAL_ACCESS_NONE, CAL_ACCESS_OVERRIDE, CAL_ACCESS_OWNER, CAL_ACCESS_READ, CAL_ACCESS_RESPOND, CAL_ACCESS_ROOT, CALENDAR_ACCESS_LEVEL, CALENDAR_COLOR, CALENDAR_COLOR_KEY, CALENDAR_DISPLAY_NAME, CALENDAR_TIME_ZONE, CAN_MODIFY_TIME_ZONE, CAN_ORGANIZER_RESPOND, IS_PRIMARY, MAX_REMINDERS, OWNER_ACCOUNT, SYNC_EVENTS, VISIBLE
public static final Uri CONTENT_URI
ContentUris.withAppendedId(Uri, long)
will
specify a single event.public static final Uri CONTENT_EXCEPTION_URI
Uri.Builder#appendPath
).public static String[] PROVIDER_WRITABLE_COLUMNS
public static final String[] SYNC_WRITABLE_COLUMNS