Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Constants](https://developer.android.com/reference/android/provider/CalendarContract.CalendarEntity#inhconstants) \| [Fields](https://developer.android.com/reference/android/provider/CalendarContract.CalendarEntity#lfields) \| [Methods](https://developer.android.com/reference/android/provider/CalendarContract.CalendarEntity#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/provider/CalendarContract.CalendarEntity#inhmethods)

# CalendarContract.CalendarEntity

*** ** * ** ***


`
public
static
final

class
CalendarContract.CalendarEntity
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/android/provider/BaseColumns,

https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns,

https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.CalendarContract.CalendarEntity |

<br />

*** ** * ** ***

Class that represents a Calendar Entity. There is one entry per calendar.
This is a helper class to make batch operations easier.

## Summary

| ### Inherited constants |
|---|
| From interface `https://developer.android.com/reference/android/provider/BaseColumns` |---|---| | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/BaseColumns#_COUNT` The count of rows in a directory. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/BaseColumns#_ID` The unique ID for a row. | |
| From interface `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns` |---|---| | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#ALLOWED_ATTENDEE_TYPES` A comma separated list of attendee types supported for this calendar in the format "#,#,#". | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#ALLOWED_AVAILABILITY` A comma separated list of availability types supported for this calendar in the format "#,#,#". | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#ALLOWED_REMINDERS` A comma separated list of reminder methods supported for this calendar in the format "#,#,#". | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CALENDAR_ACCESS_LEVEL` The level of access that the user has for the calendar Type: INTEGER (one of the values below) <br /> | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CALENDAR_COLOR` The color of the calendar. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CALENDAR_COLOR_KEY` A key for looking up a color from the `https://developer.android.com/reference/android/provider/CalendarContract.Colors` table. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CALENDAR_DISPLAY_NAME` The display name of the calendar. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CALENDAR_TIME_ZONE` The time zone the calendar is associated with. | | `int` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_CONTRIBUTOR` Full access to modify the calendar, but not the access control settings | | `int` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_EDITOR` Full access to modify the calendar, but not the access control settings | | `int` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_FREEBUSY` Can only see free/busy information about the calendar | | `int` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_NONE` Cannot access the calendar | | `int` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_OVERRIDE` not used | | `int` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_OWNER` Full access to the calendar | | `int` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_READ` Can read all event details | | `int` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_RESPOND` Can reply yes/no/maybe to an event | | `int` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_ROOT` Domain admin | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAN_MODIFY_TIME_ZONE` Can the organizer modify the time zone of the event? Column name. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAN_ORGANIZER_RESPOND` Can the organizer respond to the event? If no, the status of the organizer should not be shown by the UI. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#IS_PRIMARY` Is this the primary calendar for this account. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#MAX_REMINDERS` The maximum number of reminders allowed for an event. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#OWNER_ACCOUNT` The owner account for this calendar, based on the calendar feed. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#SYNC_EVENTS` Is this calendar synced and are its events stored on the device? 0 - Do not sync this calendar or store events for this calendar. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#VISIBLE` Is the calendar selected to be displayed? 0 - do not show events associated with this calendar. | |
| From interface `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns` |---|---| | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#ACCOUNT_NAME` The account that was used to sync the entry to the device. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#ACCOUNT_TYPE` The type of the account that was used to sync the entry to the device. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#CAN_PARTIALLY_UPDATE` If set to 1 this causes events on this calendar to be duplicated with `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#LAST_SYNCED` set to 1 whenever the event transitions from non-dirty to dirty. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#DELETED` Whether the row has been deleted but not synced to the server. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#DIRTY` Used to indicate that local, unsynced, changes are present. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#MUTATORS` Used in conjunction with `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#DIRTY` to indicate what packages wrote local changes. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#_SYNC_ID` The unique ID for a row assigned by the sync source. | |
| From interface `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns` |---|---| | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC1` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC10` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC2` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC3` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC4` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC5` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC6` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC7` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC8` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC9` Generic column for use by sync adapters. | |

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarEntity#CONTENT_URI` The default Uri used when creating a new calendar EntityIterator. |

| ### Public methods ||
|---|---|
| ` static https://developer.android.com/reference/android/content/EntityIterator` | ` https://developer.android.com/reference/android/provider/CalendarContract.CalendarEntity#newEntityIterator(android.database.Cursor)(https://developer.android.com/reference/android/database/Cursor cursor) ` Creates an entity iterator for the given cursor. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Fields

### CONTENT_URI

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

```
public static final Uri CONTENT_URI
```

The default Uri used when creating a new calendar EntityIterator.

<br />

## Public methods

### newEntityIterator

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

```
public static EntityIterator newEntityIterator (Cursor cursor)
```

Creates an entity iterator for the given cursor. It assumes the
cursor contains a calendars query.

<br />

| Parameters ||
|---|---|
| `cursor` | `Cursor`: query on `https://developer.android.com/reference/android/provider/CalendarContract.CalendarEntity#CONTENT_URI` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/EntityIterator` | an EntityIterator of calendars <br /> |