# CalendarContract.Instances

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Instances

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/provider/CalendarContract.Instances "View this page in Java")  

```
class Instances : BaseColumns, CalendarContract.CalendarColumns, CalendarContract.EventsColumns
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                             ||
| ↳ | [android.provider.CalendarContract.Instances](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#) |

Fields and helpers for interacting with Instances. An instance is a single occurrence of an event including time zone specific start and end days and minutes. The instances table is not writable and only provides a way to query event occurrences.

## Summary

|                                                                                                                                                   Constants                                                                                                                                                   ||
|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [BEGIN](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#BEGIN:kotlin.String) The beginning time of the instance, in UTC milliseconds.                                      |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [END](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#END:kotlin.String) The ending time of the instance, in UTC milliseconds.                                             |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [END_DAY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#END_DAY:kotlin.String) The Julian end day of the instance, relative to the local time zone.                      |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [END_MINUTE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#END_MINUTE:kotlin.String) The end minute of the instance measured from midnight in the local time zone.       |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EVENT_ID](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#EVENT_ID:kotlin.String) The _id of the event for this instance.                                                 |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [START_DAY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#START_DAY:kotlin.String) The Julian start day of the instance, relative to the local time zone.                |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [START_MINUTE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#START_MINUTE:kotlin.String) The start minute of the instance measured from midnight in the local time zone. |

| Inherited constants ||
|---|---|
| From class[EventsColumns](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns) |----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [ACCESS_CONFIDENTIAL](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ACCESS_CONFIDENTIAL:kotlin.Int) <br /> Confidential is not used by the app. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [ACCESS_DEFAULT](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ACCESS_DEFAULT:kotlin.Int) <br /> Default access is controlled by the server and will be treated as public on the device. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCESS_LEVEL](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ACCESS_LEVEL:kotlin.String) <br /> Defines how the event shows up for others when the calendar is shared. Column name. Type: INTEGER (One of[ACCESS_DEFAULT](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ACCESS_DEFAULT:kotlin.Int), ...) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [ACCESS_PRIVATE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ACCESS_PRIVATE:kotlin.Int) <br /> Private shares the event as a free/busy slot with no details. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [ACCESS_PUBLIC](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ACCESS_PUBLIC:kotlin.Int) <br /> Public makes the contents visible to anyone with access to the calendar. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ALL_DAY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ALL_DAY:kotlin.String) <br /> Is the event all day (time zone independent). Column name. Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [AVAILABILITY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#AVAILABILITY:kotlin.String) <br /> If this event counts as busy time or is still free time that can be scheduled over. Column name. Type: INTEGER (One of[AVAILABILITY_BUSY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#AVAILABILITY_BUSY:kotlin.Int),[AVAILABILITY_FREE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#AVAILABILITY_FREE:kotlin.Int),[AVAILABILITY_TENTATIVE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#AVAILABILITY_TENTATIVE:kotlin.Int)) <br />                                                                                                                                     | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [AVAILABILITY_BUSY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#AVAILABILITY_BUSY:kotlin.Int) <br /> Indicates that this event takes up time and will conflict with other events. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [AVAILABILITY_FREE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#AVAILABILITY_FREE:kotlin.Int) <br /> Indicates that this event is free time and will not conflict with other events. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [AVAILABILITY_TENTATIVE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#AVAILABILITY_TENTATIVE:kotlin.Int) <br /> Indicates that the owner's availability may change, but should be considered busy time that will conflict. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CALENDAR_ID](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#CALENDAR_ID:kotlin.String) <br /> The[Calendars._ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String)of the calendar the event belongs to. Column name. Type: INTEGER <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CAN_INVITE_OTHERS](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#CAN_INVITE_OTHERS:kotlin.String) <br /> Whether the user can invite others to the event. The GUESTS_CAN_INVITE_OTHERS is a setting that applies to an arbitrary guest, while CAN_INVITE_OTHERS indicates if the user can invite others (either through GUESTS_CAN_INVITE_OTHERS or because the user has modify access to the event). Column name. Type: INTEGER (boolean, readonly) <br />                                                                                                                                                                                                                                                                                                                                                                   | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CUSTOM_APP_PACKAGE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#CUSTOM_APP_PACKAGE:kotlin.String) <br /> The package name of the custom app that can provide a richer experience for the event. See the ACTION TYPE[CalendarContract.ACTION_HANDLE_CUSTOM_EVENT](https://developer.android.com/reference/kotlin/android/provider/CalendarContract#ACTION_HANDLE_CUSTOM_EVENT:kotlin.String)for details. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                      | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CUSTOM_APP_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#CUSTOM_APP_URI:kotlin.String) <br /> The URI used by the custom app for the event. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DESCRIPTION](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#DESCRIPTION:kotlin.String) <br /> The description of the event. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DISPLAY_COLOR](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#DISPLAY_COLOR:kotlin.String) <br /> This will be[EVENT_COLOR](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#EVENT_COLOR:kotlin.String)if it is not null; otherwise, this will be[Calendars.CALENDAR_COLOR](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CALENDAR_COLOR:kotlin.String). Read-only value. To modify, write to[EVENT_COLOR](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#EVENT_COLOR:kotlin.String)or[Calendars.CALENDAR_COLOR](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CALENDAR_COLOR:kotlin.String)directly. Type: INTEGER <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DTEND](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#DTEND:kotlin.String) <br /> The time the event ends in UTC millis since epoch. Column name. Type: INTEGER (long; millis since epoch) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DTSTART](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#DTSTART:kotlin.String) <br /> The time the event starts in UTC millis since epoch. Column name. Type: INTEGER (long; millis since epoch) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DURATION](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#DURATION:kotlin.String) <br /> The duration of the event in RFC2445 format. Column name. Type: TEXT (duration in RFC2445 format) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EVENT_COLOR](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#EVENT_COLOR:kotlin.String) <br /> A secondary color for the individual event. This should only be updated by the sync adapter for a given account. Type: INTEGER <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EVENT_COLOR_KEY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#EVENT_COLOR_KEY:kotlin.String) <br /> A secondary color key for the individual event. NULL or an empty string are reserved for indicating that the event does not use a key for looking up the color. The provider will update[EVENT_COLOR](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#EVENT_COLOR:kotlin.String)automatically when a valid key is written to this column. The key must reference an existing row of the[Colors](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Colors)table. @see Colors Type: TEXT <br />                                                                                                                                              | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EVENT_END_TIMEZONE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#EVENT_END_TIMEZONE:kotlin.String) <br /> The timezone for the end time of the event. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EVENT_LOCATION](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#EVENT_LOCATION:kotlin.String) <br /> Where the event takes place. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EVENT_TIMEZONE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#EVENT_TIMEZONE:kotlin.String) <br /> The timezone for the event. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EXDATE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#EXDATE:kotlin.String) <br /> The recurrence exception dates for the event. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EXRULE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#EXRULE:kotlin.String) <br /> The recurrence exception rule for the event. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [GUESTS_CAN_INVITE_OTHERS](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#GUESTS_CAN_INVITE_OTHERS:kotlin.String) <br /> Whether guests can invite other guests. Column name. Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [GUESTS_CAN_MODIFY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#GUESTS_CAN_MODIFY:kotlin.String) <br /> Whether guests can modify the event. Column name. Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [GUESTS_CAN_SEE_GUESTS](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#GUESTS_CAN_SEE_GUESTS:kotlin.String) <br /> Whether guests can see the list of attendees. Column name. Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [HAS_ALARM](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#HAS_ALARM:kotlin.String) <br /> Whether the event has an alarm or not. Column name. Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [HAS_ATTENDEE_DATA](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#HAS_ATTENDEE_DATA:kotlin.String) <br /> Whether the event has attendee information. True if the event has full attendee data, false if the event has information about self only. Column name. Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [HAS_EXTENDED_PROPERTIES](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#HAS_EXTENDED_PROPERTIES:kotlin.String) <br /> Whether the event has extended properties or not. Column name. Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [IS_ORGANIZER](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#IS_ORGANIZER:kotlin.String) <br /> Are we the organizer of this event. If this column is not explicitly set, the provider will return 1 if[ORGANIZER](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ORGANIZER:kotlin.String)is equal to[Calendars.OWNER_ACCOUNT](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#OWNER_ACCOUNT:kotlin.String). Column name. Type: STRING <br />                                                                                                                                                                                                                                                                                 | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [LAST_DATE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#LAST_DATE:kotlin.String) <br /> The last date this event repeats on, or NULL if it never ends. Column name. Type: INTEGER (long; millis since epoch) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [LAST_SYNCED](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#LAST_SYNCED:kotlin.String) <br /> Used to indicate that a row is not a real event but an original copy of a locally modified event. A copy is made when an event changes from non-dirty to dirty and the event is on a calendar with[Calendars.CAN_PARTIALLY_UPDATE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.SyncColumns#CAN_PARTIALLY_UPDATE:kotlin.String)set to 1. This copy does not get expanded in the instances table and is only visible in queries made by a sync adapter. The copy gets removed when the event is changed back to non-dirty by a sync adapter. Type: INTEGER (boolean) <br />                                                                                                                   | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ORGANIZER](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ORGANIZER:kotlin.String) <br /> Email of the organizer (owner) of the event. Column name. Type: STRING <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ORIGINAL_ALL_DAY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ORIGINAL_ALL_DAY:kotlin.String) <br /> The allDay status (true or false) of the original recurring event for which this event is an exception. Column name. Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ORIGINAL_ID](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ORIGINAL_ID:kotlin.String) <br /> The[Events._ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String)of the original recurring event for which this event is an exception. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ORIGINAL_INSTANCE_TIME](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ORIGINAL_INSTANCE_TIME:kotlin.String) <br /> The original instance time of the recurring event for which this event is an exception. Column name. Type: INTEGER (long; millis since epoch) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ORIGINAL_SYNC_ID](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#ORIGINAL_SYNC_ID:kotlin.String) <br /> The _sync_id of the original recurring event for which this event is an exception. The provider should keep the original_id in sync when this is updated. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [RDATE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#RDATE:kotlin.String) <br /> The recurrence dates for the event. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [RRULE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#RRULE:kotlin.String) <br /> The recurrence rule for the event. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SELF_ATTENDEE_STATUS](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#SELF_ATTENDEE_STATUS:kotlin.String) <br /> This is a copy of the attendee status for the owner of this event. This field is copied here so that we can efficiently filter out events that are declined without having to look in the Attendees table. Column name. Type: INTEGER (int) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STATUS](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#STATUS:kotlin.String) <br /> The event status. Column name. Type: INTEGER (one of[STATUS_TENTATIVE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#STATUS_TENTATIVE:kotlin.Int)...) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [STATUS_CANCELED](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#STATUS_CANCELED:kotlin.Int) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [STATUS_CONFIRMED](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#STATUS_CONFIRMED:kotlin.Int) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [STATUS_TENTATIVE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#STATUS_TENTATIVE:kotlin.Int) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_DATA1](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#SYNC_DATA1:kotlin.String) <br /> This column is available for use by sync adapters. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_DATA10](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#SYNC_DATA10:kotlin.String) <br /> This column is available for use by sync adapters. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_DATA2](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#SYNC_DATA2:kotlin.String) <br /> This column is available for use by sync adapters. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_DATA3](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#SYNC_DATA3:kotlin.String) <br /> This column is available for use by sync adapters. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_DATA4](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#SYNC_DATA4:kotlin.String) <br /> This column is available for use by sync adapters. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_DATA5](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#SYNC_DATA5:kotlin.String) <br /> This column is available for use by sync adapters. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_DATA6](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#SYNC_DATA6:kotlin.String) <br /> This column is available for use by sync adapters. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_DATA7](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#SYNC_DATA7:kotlin.String) <br /> This column is available for use by sync adapters. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_DATA8](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#SYNC_DATA8:kotlin.String) <br /> This column is available for use by sync adapters. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_DATA9](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#SYNC_DATA9:kotlin.String) <br /> This column is available for use by sync adapters. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [TITLE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#TITLE:kotlin.String) <br /> The title of the event. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [UID_2445](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#UID_2445:kotlin.String) <br /> The UID for events added from the RFC 2445 iCalendar format. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | ||
| From class[CalendarColumns](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns) |----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ALLOWED_ATTENDEE_TYPES](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#ALLOWED_ATTENDEE_TYPES:kotlin.String) <br /> A comma separated list of attendee types supported for this calendar in the format "#,#,#". Valid types are[Attendees.TYPE_NONE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.AttendeesColumns#TYPE_NONE:kotlin.Int),[Attendees.TYPE_OPTIONAL](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.AttendeesColumns#TYPE_OPTIONAL:kotlin.Int),[Attendees.TYPE_REQUIRED](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.AttendeesColumns#TYPE_REQUIRED:kotlin.Int),[Attendees.TYPE_RESOURCE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.AttendeesColumns#TYPE_RESOURCE:kotlin.Int). Setting this field to only[Attendees.TYPE_NONE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.AttendeesColumns#TYPE_NONE:kotlin.Int)should be used to indicate that changing the attendee type is not supported. <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ALLOWED_AVAILABILITY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#ALLOWED_AVAILABILITY:kotlin.String) <br /> A comma separated list of availability types supported for this calendar in the format "#,#,#". Valid types are[Events.AVAILABILITY_BUSY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#AVAILABILITY_BUSY:kotlin.Int),[Events.AVAILABILITY_FREE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#AVAILABILITY_FREE:kotlin.Int),[Events.AVAILABILITY_TENTATIVE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#AVAILABILITY_TENTATIVE:kotlin.Int). Setting this field to only[Events.AVAILABILITY_BUSY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventsColumns#AVAILABILITY_BUSY:kotlin.Int)should be used to indicate that changing the availability is not supported. <br />                                                                                                                      | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ALLOWED_REMINDERS](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#ALLOWED_REMINDERS:kotlin.String) <br /> A comma separated list of reminder methods supported for this calendar in the format "#,#,#". Valid types are[Reminders.METHOD_DEFAULT](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.RemindersColumns#METHOD_DEFAULT:kotlin.Int),[Reminders.METHOD_ALERT](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.RemindersColumns#METHOD_ALERT:kotlin.Int),[Reminders.METHOD_EMAIL](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.RemindersColumns#METHOD_EMAIL:kotlin.Int),[Reminders.METHOD_SMS](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.RemindersColumns#METHOD_SMS:kotlin.Int),[Reminders.METHOD_ALARM](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.RemindersColumns#METHOD_ALARM:kotlin.Int). Column name. Type: TEXT <br />                                                                                 | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CALENDAR_ACCESS_LEVEL](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CALENDAR_ACCESS_LEVEL:kotlin.String) <br /> The level of access that the user has for the calendar Type: INTEGER (one of the values below) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CALENDAR_COLOR](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CALENDAR_COLOR:kotlin.String) <br /> The color of the calendar. This should only be updated by the sync adapter, not other apps, as changing a calendar's color can adversely affect its display. Type: INTEGER (color value) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CALENDAR_COLOR_KEY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CALENDAR_COLOR_KEY:kotlin.String) <br /> A key for looking up a color from the[Colors](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Colors)table. NULL or an empty string are reserved for indicating that the calendar does not use a key for looking up the color. The provider will update[CALENDAR_COLOR](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CALENDAR_COLOR:kotlin.String)automatically when a valid key is written to this column. The key must reference an existing row of the[Colors](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Colors)table. @see Colors Type: TEXT <br />                                                                                                                                                                                                                                                                                                            | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CALENDAR_DISPLAY_NAME](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CALENDAR_DISPLAY_NAME:kotlin.String) <br /> The display name of the calendar. Column name. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CALENDAR_TIME_ZONE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CALENDAR_TIME_ZONE:kotlin.String) <br /> The time zone the calendar is associated with. Type: TEXT <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CAL_ACCESS_CONTRIBUTOR](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_CONTRIBUTOR:kotlin.Int) <br /> Full access to modify the calendar, but not the access control settings <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CAL_ACCESS_EDITOR](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_EDITOR:kotlin.Int) <br /> Full access to modify the calendar, but not the access control settings <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CAL_ACCESS_FREEBUSY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_FREEBUSY:kotlin.Int) <br /> Can only see free/busy information about the calendar <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CAL_ACCESS_NONE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_NONE:kotlin.Int) <br /> Cannot access the calendar <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CAL_ACCESS_OVERRIDE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_OVERRIDE:kotlin.Int) <br /> not used <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CAL_ACCESS_OWNER](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_OWNER:kotlin.Int) <br /> Full access to the calendar <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CAL_ACCESS_READ](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_READ:kotlin.Int) <br /> Can read all event details <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CAL_ACCESS_RESPOND](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_RESPOND:kotlin.Int) <br /> Can reply yes/no/maybe to an event <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [CAL_ACCESS_ROOT](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_ROOT:kotlin.Int) <br /> Domain admin <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CAN_MODIFY_TIME_ZONE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CAN_MODIFY_TIME_ZONE:kotlin.String) <br /> Can the organizer modify the time zone of the event? Column name. Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CAN_ORGANIZER_RESPOND](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#CAN_ORGANIZER_RESPOND:kotlin.String) <br /> Can the organizer respond to the event? If no, the status of the organizer should not be shown by the UI. Defaults to 1. Column name. Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [IS_PRIMARY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#IS_PRIMARY:kotlin.String) <br /> Is this the primary calendar for this account. If this column is not explicitly set, the provider will return 1 if[Calendars.ACCOUNT_NAME](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.SyncColumns#ACCOUNT_NAME:kotlin.String)is equal to[Calendars.OWNER_ACCOUNT](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#OWNER_ACCOUNT:kotlin.String). <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MAX_REMINDERS](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#MAX_REMINDERS:kotlin.String) <br /> The maximum number of reminders allowed for an event. Column name. Type: INTEGER <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [OWNER_ACCOUNT](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#OWNER_ACCOUNT:kotlin.String) <br /> The owner account for this calendar, based on the calendar feed. This will be different from the _SYNC_ACCOUNT for delegated calendars. Column name. Type: String <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SYNC_EVENTS](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#SYNC_EVENTS:kotlin.String) <br /> Is this calendar synced and are its events stored on the device? 0 - Do not sync this calendar or store events for this calendar. 1 - Sync down events for this calendar. Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [VISIBLE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.CalendarColumns#VISIBLE:kotlin.String) <br /> Is the calendar selected to be displayed? 0 - do not show events associated with this calendar. 1 - show events associated with this calendar Type: INTEGER (boolean) <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | ||
| From class[BaseColumns](https://developer.android.com/reference/kotlin/android/provider/BaseColumns) |----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_COUNT](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_COUNT:kotlin.String) <br /> The count of rows in a directory. Type: INTEGER <br /> | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) <br /> The unique ID for a row. Type: INTEGER (long) <br />         | ||

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ||
|-----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)! | [query](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#query(android.content.ContentResolver,%20kotlin.Array,%20kotlin.Long,%20kotlin.Long))`(`cr:` `[ContentResolver](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#)!`, `projection:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>!`, `begin:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `end:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Performs a query to return all visible instances in the given range.                                                                                                                                                 |
| static[Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)! | [query](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#query(android.content.ContentResolver,%20kotlin.Array,%20kotlin.Long,%20kotlin.Long,%20kotlin.String))`(`cr:` `[ContentResolver](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#)!`, `projection:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>!`, `begin:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `end:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `searchQuery:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Performs a query to return all visible instances in the given range that match the given query. |

|                                                                                                                                                                                   Properties                                                                                                                                                                                   ||
|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_BY_DAY_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#CONTENT_BY_DAY_URI:android.net.Uri) The content:// style URL for querying an instance range by Julian Day.                                                                 |
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_SEARCH_BY_DAY_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#CONTENT_SEARCH_BY_DAY_URI:android.net.Uri) The content:// style URL for querying an instance range with a search term.                                              |
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_SEARCH_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#CONTENT_SEARCH_URI:android.net.Uri) The content:// style URL for querying an instance range with a search term.                                                            |
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#CONTENT_URI:android.net.Uri) The content:// style URL for querying an instance range.                                                                                             |
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)  | [ENTERPRISE_CONTENT_BY_DAY_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#ENTERPRISE_CONTENT_BY_DAY_URI:android.net.Uri) The content:// style URL for querying an instance range by Julian Day in the managed profile.                    |
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)  | [ENTERPRISE_CONTENT_SEARCH_BY_DAY_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#ENTERPRISE_CONTENT_SEARCH_BY_DAY_URI:android.net.Uri) The content:// style URL for querying an instance range with a search term in the managed profile. |
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)  | [ENTERPRISE_CONTENT_SEARCH_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#ENTERPRISE_CONTENT_SEARCH_URI:android.net.Uri) The content:// style URL for querying an instance range with a search term in the managed profile.               |
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)  | [ENTERPRISE_CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#ENTERPRISE_CONTENT_URI:android.net.Uri) The content:// style URL for querying an instance range in the managed profile.                                                |

## Constants

### BEGIN

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val BEGIN: String
```

The beginning time of the instance, in UTC milliseconds. Column name.

Type: INTEGER (long; millis since epoch)  

    Value: "begin"

### END

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val END: String
```

The ending time of the instance, in UTC milliseconds. Column name.

Type: INTEGER (long; millis since epoch)  

    Value: "end"

### END_DAY

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val END_DAY: String
```

The Julian end day of the instance, relative to the local time zone. Column name.

Type: INTEGER (int)  

    Value: "endDay"

### END_MINUTE

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val END_MINUTE: String
```

The end minute of the instance measured from midnight in the local time zone. Column name.

Type: INTEGER (int)  

    Value: "endMinute"

### EVENT_ID

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val EVENT_ID: String
```

The _id of the event for this instance. Column name.

Type: INTEGER (long, foreign key to the Events table)  

    Value: "event_id"

### START_DAY

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val START_DAY: String
```

The Julian start day of the instance, relative to the local time zone. Column name.

Type: INTEGER (int)  

    Value: "startDay"

### START_MINUTE

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val START_MINUTE: String
```

The start minute of the instance measured from midnight in the local time zone. Column name.

Type: INTEGER (int)  

    Value: "startMinute"

## Public methods

### query

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static fun query(
    cr: ContentResolver!, 
    projection: Array<String!>!, 
    begin: Long, 
    end: Long
): Cursor!
```

Performs a query to return all visible instances in the given range. This is a blocking function and should not be done on the UI thread. This will cause an expansion of recurring events to fill this time range if they are not already expanded and will slow down for larger time ranges with many recurring events.

|                                                                                                Parameters                                                                                                ||
|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `cr`         | [ContentResolver](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#)!:The ContentResolver to use for the query                                          |
| `projection` | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!:The columns to return |
| `begin`      | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):The start of the time range to query in UTC millis since epoch                                                |
| `end`        | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):The end of the time range to query in UTC millis since epoch                                                  |

|                                                                    Return                                                                     ||
|-----------------------------------------------------------------------------------------|------------------------------------------------------|
| [Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)! | A Cursor containing all instances in the given range |

### query

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static fun query(
    cr: ContentResolver!, 
    projection: Array<String!>!, 
    begin: Long, 
    end: Long, 
    searchQuery: String!
): Cursor!
```

Performs a query to return all visible instances in the given range that match the given query. This is a blocking function and should not be done on the UI thread. This will cause an expansion of recurring events to fill this time range if they are not already expanded and will slow down for larger time ranges with many recurring events.

|                                                                                                   Parameters                                                                                                    ||
|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `cr`          | [ContentResolver](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#)!:The ContentResolver to use for the query                                                |
| `projection`  | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!:The columns to return       |
| `begin`       | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):The start of the time range to query in UTC millis since epoch                                                      |
| `end`         | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):The end of the time range to query in UTC millis since epoch                                                        |
| `searchQuery` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:A string of space separated search terms. Segments enclosed by double quotes will be treated as a single term. |

|                                                                              Return                                                                              ||
|-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------|
| [Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)! | A Cursor of instances matching the search terms in the given time range |

## Properties

### CONTENT_BY_DAY_URI

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONTENT_BY_DAY_URI: Uri!
```

The content:// style URL for querying an instance range by Julian Day. The start and end day should be added as path segments if this is used directly.  

### CONTENT_SEARCH_BY_DAY_URI

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONTENT_SEARCH_BY_DAY_URI: Uri!
```

The content:// style URL for querying an instance range with a search term. The start day, end day, and search string should be appended as path segments if this is used directly.  

### CONTENT_SEARCH_URI

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONTENT_SEARCH_URI: Uri!
```

The content:// style URL for querying an instance range with a search term. The begin, end, and search string should be appended as path segments if this is used directly.  

### CONTENT_URI

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONTENT_URI: Uri!
```

The content:// style URL for querying an instance range. The begin and end of the range to query should be added as path segments if this is used directly.  

### ENTERPRISE_CONTENT_BY_DAY_URI

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ENTERPRISE_CONTENT_BY_DAY_URI: Uri
```

The content:// style URL for querying an instance range by Julian Day in the managed profile. It supports similar semantics as[CONTENT_BY_DAY_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#CONTENT_BY_DAY_URI:android.net.Uri)and performs similar checks as[ENTERPRISE_CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#ENTERPRISE_CONTENT_URI:android.net.Uri).  

### ENTERPRISE_CONTENT_SEARCH_BY_DAY_URI

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ENTERPRISE_CONTENT_SEARCH_BY_DAY_URI: Uri
```

The content:// style URL for querying an instance range with a search term in the managed profile. It supports similar semantics as[CONTENT_SEARCH_BY_DAY_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#CONTENT_SEARCH_BY_DAY_URI:android.net.Uri)and performs similar checks as[ENTERPRISE_CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#ENTERPRISE_CONTENT_URI:android.net.Uri).  

### ENTERPRISE_CONTENT_SEARCH_URI

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ENTERPRISE_CONTENT_SEARCH_URI: Uri
```

The content:// style URL for querying an instance range with a search term in the managed profile. It supports similar semantics as[CONTENT_SEARCH_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#CONTENT_SEARCH_URI:android.net.Uri)and performs similar checks as[ENTERPRISE_CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#ENTERPRISE_CONTENT_URI:android.net.Uri).  

### ENTERPRISE_CONTENT_URI

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ENTERPRISE_CONTENT_URI: Uri
```

The content:// style URL for querying an instance range in the managed profile. It supports similar semantics as[CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#CONTENT_URI:android.net.Uri).

The following columns plus the columns that are allowed by[Events.ENTERPRISE_CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Events#ENTERPRISE_CONTENT_URI:android.net.Uri)are allowed to be queried via this uri:

- [_ID](https://developer.android.com/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String)
- [EVENT_ID](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#EVENT_ID:kotlin.String)
- [BEGIN](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#BEGIN:kotlin.String)
- [END](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#END:kotlin.String)
- [START_DAY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#START_DAY:kotlin.String)
- [END_DAY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#END_DAY:kotlin.String)
- [START_MINUTE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#START_MINUTE:kotlin.String)
- [END_MINUTE](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.Instances#END_MINUTE:kotlin.String)

[IllegalArgumentException](https://developer.android.com/reference/kotlin/java/lang/IllegalArgumentException.html#)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)](https://developer.android.com/reference/kotlin/android/app/admin/DevicePolicyManager.html#setCrossProfileCalendarPackages(android.content.ComponentName,%20kotlin.collections.MutableSet)).  
**See Also**

- [android.app.admin.DevicePolicyManager#getCrossProfileCalendarPackages(ComponentName)](https://developer.android.com/reference/kotlin/android/app/admin/DevicePolicyManager.html#getCrossProfileCalendarPackages(android.content.ComponentName))