# Print output for @column tags ?>
public
static
final
class
CalendarContract.Events
extends Object
implements
BaseColumns,
CalendarContract.SyncColumns,
CalendarContract.EventsColumns,
CalendarContract.CalendarColumns
| java.lang.Object | |
| ↳ | android.provider.CalendarContract.Events |
Constants and helpers for the Events table, which contains details for individual events.
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.
Events#_ID of the event
should be provided either as an appended id to the Uri (
ContentUris#withAppendedId) 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.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.Events#_ID is appended to the Uri.
Recurring events will only return a single row regardless of the number
of times that event repeats.CalendarContract.EventsColumns.CALENDAR_IDCalendarContract.EventsColumns.ORGANIZERCalendarContract.EventsColumns.TITLECalendarContract.EventsColumns.EVENT_LOCATIONCalendarContract.EventsColumns.DESCRIPTIONCalendarContract.EventsColumns.EVENT_COLORCalendarContract.EventsColumns.DTSTARTCalendarContract.EventsColumns.DTENDCalendarContract.EventsColumns.EVENT_TIMEZONECalendarContract.EventsColumns.EVENT_END_TIMEZONECalendarContract.EventsColumns.DURATIONCalendarContract.EventsColumns.ALL_DAYCalendarContract.EventsColumns.RRULECalendarContract.EventsColumns.RDATECalendarContract.EventsColumns.EXRULECalendarContract.EventsColumns.EXDATECalendarContract.EventsColumns.ORIGINAL_IDCalendarContract.EventsColumns.ORIGINAL_SYNC_IDCalendarContract.EventsColumns.ORIGINAL_INSTANCE_TIMECalendarContract.EventsColumns.ORIGINAL_ALL_DAYCalendarContract.EventsColumns.ACCESS_LEVELCalendarContract.EventsColumns.AVAILABILITYCalendarContract.EventsColumns.GUESTS_CAN_MODIFYCalendarContract.EventsColumns.GUESTS_CAN_INVITE_OTHERSCalendarContract.EventsColumns.GUESTS_CAN_SEE_GUESTSCalendarContract.EventsColumns.CUSTOM_APP_PACKAGECalendarContract.EventsColumns.CUSTOM_APP_URICalendarContract.EventsColumns.UID_2445CalendarContract.SyncColumns.DIRTYCalendarContract.SyncColumns.MUTATORSCalendarContract.SyncColumns._SYNC_IDCalendarContract.EventsColumns.SYNC_DATA1CalendarContract.EventsColumns.SYNC_DATA2CalendarContract.EventsColumns.SYNC_DATA3CalendarContract.EventsColumns.SYNC_DATA4CalendarContract.EventsColumns.SYNC_DATA5CalendarContract.EventsColumns.SYNC_DATA6CalendarContract.EventsColumns.SYNC_DATA7CalendarContract.EventsColumns.SYNC_DATA8CalendarContract.EventsColumns.SYNC_DATA9CalendarContract.EventsColumns.SYNC_DATA10Inherited constants |
|---|
Fields | |
|---|---|
public
static
final
Uri |
CONTENT_EXCEPTION_URI
The content:// style URI for recurring event exceptions. |
public
static
final
Uri |
CONTENT_URI
The content:// style URL for interacting with events. |
public
static
final
Uri |
ENTERPRISE_CONTENT_URI
The content:// style URL for querying Events table in the managed profile. |
Inherited methods | |
|---|---|
public static final Uri CONTENT_EXCEPTION_URI
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 Uri.Builder#appendPath).
public static final Uri CONTENT_URI
The content:// style URL for interacting with events. Appending an
event id using ContentUris#withAppendedId(Uri, long) will
specify a single event.
public static final Uri ENTERPRISE_CONTENT_URI
The content:// style URL for querying Events table in the managed profile. Appending an
event id using ContentUris#withAppendedId(Uri, long) specifies a single event.
The following columns are allowed to be queried via this uri:
BaseColumns._IDCalendarContract.EventsColumns.CALENDAR_IDCalendarContract.EventsColumns.TITLECalendarContract.EventsColumns.EVENT_LOCATIONCalendarContract.EventsColumns.EVENT_COLORCalendarContract.EventsColumns.STATUSCalendarContract.EventsColumns.DTSTARTCalendarContract.EventsColumns.DTENDCalendarContract.EventsColumns.EVENT_TIMEZONECalendarContract.EventsColumns.EVENT_END_TIMEZONECalendarContract.EventsColumns.DURATIONCalendarContract.EventsColumns.ALL_DAYCalendarContract.EventsColumns.AVAILABILITYCalendarContract.EventsColumns.RRULECalendarContract.EventsColumns.RDATECalendarContract.EventsColumns.LAST_DATECalendarContract.EventsColumns.EXRULECalendarContract.EventsColumns.EXDATECalendarContract.EventsColumns.SELF_ATTENDEE_STATUSCalendarContract.EventsColumns.DISPLAY_COLORCalendarContract.CalendarColumns.CALENDAR_COLORCalendarContract.CalendarColumns.VISIBLECalendarContract.CalendarColumns.CALENDAR_TIME_ZONECalendarContract.CalendarColumns.IS_PRIMARYIllegalArgumentException is thrown if there exists columns in the
projection of the query to this uri that are not contained in the above list.
This uri returns an empty cursor if the calling user is not a parent profile
of a managed profile, or the managed profile is disabled, or cross-profile calendar is
disabled in Settings, or this uri is queried from a package that is not allowed by
the profile owner of the managed profile via
DevicePolicyManager#setCrossProfileCalendarPackages(ComponentName, Set).
Apps can register a ContentObserver for this URI to listen
to changes.