CalendarContract.Attendees


public static final class CalendarContract.Attendees
extends Object implements BaseColumns, CalendarContract.AttendeesColumns, CalendarContract.EventsColumns

java.lang.Object
   ↳ android.provider.CalendarContract.Attendees


Fields and helpers for interacting with Attendees. Each row of this table represents a single attendee or guest of an event. Calling query(android.content.ContentResolver, long, java.lang.String[]) will return a list of attendees for the event with the given eventId. Both apps and sync adapters may write to this table. There are six writable fields and all of them except CalendarContract.AttendeesColumns.ATTENDEE_NAME must be included when inserting a new attendee. They are:

Summary

Inherited constants

String _COUNT

The count of rows in a directory.

String _ID

The unique ID for a row.

String ATTENDEE_EMAIL

The email address of the attendee.

String ATTENDEE_IDENTITY

The identity of the attendee as referenced in ContactsContract.CommonDataKinds.Identity.IDENTITY.

String ATTENDEE_ID_NAMESPACE

The identity name space of the attendee as referenced in ContactsContract.CommonDataKinds.Identity.NAMESPACE.

String ATTENDEE_NAME

The name of the attendee.

String ATTENDEE_RELATIONSHIP

The relationship of the attendee to the user.

String ATTENDEE_STATUS

The attendance status of the attendee.

int ATTENDEE_STATUS_ACCEPTED

int ATTENDEE_STATUS_DECLINED

int ATTENDEE_STATUS_INVITED

int ATTENDEE_STATUS_NONE

int ATTENDEE_STATUS_TENTATIVE

String ATTENDEE_TYPE

The type of attendee.

String EVENT_ID

The id of the event.

int RELATIONSHIP_ATTENDEE

int RELATIONSHIP_NONE

int RELATIONSHIP_ORGANIZER

int RELATIONSHIP_PERFORMER

int RELATIONSHIP_SPEAKER

int TYPE_NONE

int TYPE_OPTIONAL

int TYPE_REQUIRED

int TYPE_RESOURCE

This specifies that an attendee is a resource, like a room, a cabbage, or something and not an actual person.

int ACCESS_CONFIDENTIAL

Confidential is not used by the app.

int ACCESS_DEFAULT

Default access is controlled by the server and will be treated as public on the device.

String ACCESS_LEVEL

Defines how the event shows up for others when the calendar is shared.

int ACCESS_PRIVATE

Private shares the event as a free/busy slot with no details.

int ACCESS_PUBLIC

Public makes the contents visible to anyone with access to the calendar.

String ALL_DAY

Is the event all day (time zone independent).

String AVAILABILITY

If this event counts as busy time or is still free time that can be scheduled over.

int AVAILABILITY_BUSY

Indicates that this event takes up time and will conflict with other events.

int AVAILABILITY_FREE

Indicates that this event is free time and will not conflict with other events.

int AVAILABILITY_TENTATIVE

Indicates that the owner's availability may change, but should be considered busy time that will conflict.

String CALENDAR_ID

The Calendars._ID of the calendar the event belongs to.

String CAN_INVITE_OTHERS

Whether the user can invite others to the event.

String CUSTOM_APP_PACKAGE

The package name of the custom app that can provide a richer experience for the event.

String CUSTOM_APP_URI

The URI used by the custom app for the event.

String DESCRIPTION

The description of the event.

String DISPLAY_COLOR

This will be EVENT_COLOR if it is not null; otherwise, this will be Calendars.CALENDAR_COLOR.

String DTEND

The time the event ends in UTC millis since epoch.

String DTSTART

The time the event starts in UTC millis since epoch.

String DURATION

The duration of the event in RFC2445 format.

String EVENT_COLOR

A secondary color for the individual event.

String EVENT_COLOR_KEY

A secondary color key for the individual event.

String EVENT_END_TIMEZONE

The timezone for the end time of the event.

String EVENT_LOCATION

Where the event takes place.

String EVENT_TIMEZONE

The timezone for the event.

String EXDATE

The recurrence exception dates for the event.

String EXRULE

The recurrence exception rule for the event.

String GUESTS_CAN_INVITE_OTHERS

Whether guests can invite other guests.

String GUESTS_CAN_MODIFY

Whether guests can modify the event.

String GUESTS_CAN_SEE_GUESTS

Whether guests can see the list of attendees.

String HAS_ALARM

Whether the event has an alarm or not.

String HAS_ATTENDEE_DATA

Whether the event has attendee information.

String HAS_EXTENDED_PROPERTIES

Whether the event has extended properties or not.

String IS_ORGANIZER

Are we the organizer of this event.

String LAST_DATE

The last date this event repeats on, or NULL if it never ends.

String LAST_SYNCED

Used to indicate that a row is not a real event but an original copy of a locally modified event.

String ORGANIZER

Email of the organizer (owner) of the event.

String ORIGINAL_ALL_DAY

The allDay status (true or false) of the original recurring event for which this event is an exception.

String ORIGINAL_ID

The Events._ID of the original recurring event for which this event is an exception.

String ORIGINAL_INSTANCE_TIME

The original instance time of the recurring event for which this event is an exception.

String ORIGINAL_SYNC_ID

The _sync_id of the original recurring event for which this event is an exception.

String RDATE

The recurrence dates for the event.

String RRULE

The recurrence rule for the event.

String SELF_ATTENDEE_STATUS

This is a copy of the attendee status for the owner of this event.

String STATUS

The event status.

int STATUS_CANCELED

int STATUS_CONFIRMED

int STATUS_TENTATIVE

String SYNC_DATA1

This column is available for use by sync adapters.

String SYNC_DATA10

This column is available for use by sync adapters.

String SYNC_DATA2

This column is available for use by sync adapters.

String SYNC_DATA3

This column is available for use by sync adapters.

String SYNC_DATA4

This column is available for use by sync adapters.

String SYNC_DATA5

This column is available for use by sync adapters.

String SYNC_DATA6

This column is available for use by sync adapters.

String SYNC_DATA7

This column is available for use by sync adapters.

String SYNC_DATA8

This column is available for use by sync adapters.

String SYNC_DATA9

This column is available for use by sync adapters.

String TITLE

The title of the event.

String UID_2445

The UID for events added from the RFC 2445 iCalendar format.

Fields

public static final Uri CONTENT_URI

The content:// style URL for accessing Attendees data

Public methods

static Cursor query(ContentResolver cr, long eventId, String[] projection)

Queries all attendees associated with the given event.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Fields

CONTENT_URI

Added in API level 14
public static final Uri CONTENT_URI

The content:// style URL for accessing Attendees data

Public methods

query

Added in API level 14
public static Cursor query (ContentResolver cr, 
                long eventId, 
                String[] projection)

Queries all attendees associated with the given event. This is a blocking call and should not be done on the UI thread.

Parameters
cr ContentResolver: The content resolver to use for the query

eventId long: The id of the event to retrieve attendees for

projection String: the columns to return in the cursor

Returns
Cursor A Cursor containing all attendees for the event