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

# CalendarContract.Colors

*** ** * ** ***


`
public
static
final

class
CalendarContract.Colors
`


`

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


`

`


implements

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


`

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

<br />

*** ** * ** ***

Fields for accessing colors available for a given account. Colors are
referenced by `https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#COLOR_KEY` which must be unique for a given
account name/type. These values can only be updated by the sync
adapter. Only `https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#COLOR` may be updated after the initial insert. In
addition, a row can only be deleted once all references to that color
have been removed from the `https://developer.android.com/reference/android/provider/CalendarContract.Calendars` or `https://developer.android.com/reference/android/provider/CalendarContract.Events` tables.

## Summary

| ### Inherited constants |
|---|
| From interface `https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns` |---|---| | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#COLOR` The color as an 8-bit ARGB integer value. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#COLOR_KEY` The key used to reference this color. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#COLOR_TYPE` The type of color, which describes how it should be used. | | `int` | `https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#TYPE_CALENDAR` This indicateds a color that can be used for calendars. | | `int` | `https://developer.android.com/reference/android/provider/CalendarContract.ColorsColumns#TYPE_EVENT` This indicates a color that can be used for events. | |
| From interface `https://developer.android.com/reference/android/provider/SyncStateContract.Columns` |---|---| | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/SyncStateContract.Columns#ACCOUNT_NAME` A reference to the name of the account to which this data belongs Type: STRING <br /> | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/SyncStateContract.Columns#ACCOUNT_TYPE` A reference to the type of the account to which this data belongs Type: STRING <br /> | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/SyncStateContract.Columns#DATA` The sync data associated with this account. | |
| 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. | |

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/CalendarContract.Colors#CONTENT_URI` The Uri for querying color information |

| ### 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 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Uri CONTENT_URI
```

The Uri for querying color information

<br />