public static final class CalendarContract.Events
extends Object
implements BaseColumns, CalendarContract.SyncColumns, CalendarContract.EventsColumns, CalendarContract.CalendarColumns
java.lang.Object | |
↳ | android.provider.CalendarContract.Events |
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_ID
ORGANIZER
TITLE
EVENT_LOCATION
DESCRIPTION
EVENT_COLOR
DTSTART
DTEND
EVENT_TIMEZONE
EVENT_END_TIMEZONE
DURATION
ALL_DAY
RRULE
RDATE
EXRULE
EXDATE
ORIGINAL_ID
ORIGINAL_SYNC_ID
ORIGINAL_INSTANCE_TIME
ORIGINAL_ALL_DAY
ACCESS_LEVEL
AVAILABILITY
GUESTS_CAN_MODIFY
GUESTS_CAN_INVITE_OTHERS
GUESTS_CAN_SEE_GUESTS
CUSTOM_APP_PACKAGE
CUSTOM_APP_URI
UID_2445
DIRTY
MUTATORS
_SYNC_ID
SYNC_DATA1
SYNC_DATA2
SYNC_DATA3
SYNC_DATA4
SYNC_DATA5
SYNC_DATA6
SYNC_DATA7
SYNC_DATA8
SYNC_DATA9
SYNC_DATA10
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 |
|
---|---|
public static final Uri |
CONTENT_EXCEPTION_URI 用于定期事件例外的content:// style URI。 |
public static final Uri |
CONTENT_URI 用于与事件交互的内容://样式网址。 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
Uri CONTENT_EXCEPTION_URI
用于定期事件例外的content:// style URI。 插入需要附加的事件ID。 删除异常需要原始事件ID和异常事件ID(请参阅appendPath(String)
)。
Uri CONTENT_URI
用于与事件交互的内容://样式网址。 使用withAppendedId(Uri, long)
附加事件ID将指定一个事件。