Added in API level 15

Colors


class Colors : CalendarContract.ColorsColumns

Fields for accessing colors available for a given account. Colors are referenced by COLOR_KEY which must be unique for a given account name/type. These values can only be updated by the sync adapter. Only 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 Calendars or Events tables.

Summary

Inherited constants
String ACCOUNT_NAME

A reference to the name of the account to which this data belongs

Type: STRING

String ACCOUNT_TYPE

A reference to the type of the account to which this data belongs

Type: STRING

String DATA

The sync data associated with this account.

Type: NONE

String COLOR

The color as an 8-bit ARGB integer value. Colors should specify alpha as fully opaque (eg 0xFF993322) as the alpha may be ignored or modified for display. It is reccomended that colors be usable with light (near white) text. Apps should not depend on that assumption, however. Column name.

Type: INTEGER (NOT NULL)

String COLOR_KEY

The key used to reference this color. This can be any non-empty string, but must be unique for a given ACCOUNT_TYPE and ACCOUNT_NAME. Column name.

Type: TEXT

String COLOR_TYPE

The type of color, which describes how it should be used. Valid types are TYPE_CALENDAR and TYPE_EVENT. Column name.

Type: INTEGER (NOT NULL)

Int TYPE_CALENDAR

This indicateds a color that can be used for calendars.

Int TYPE_EVENT

This indicates a color that can be used for events.

String _COUNT

The count of rows in a directory.

Type: INTEGER

String _ID

The unique ID for a row.

Type: INTEGER (long)

Properties
static Uri!

The Uri for querying color information

Properties

CONTENT_URI

Added in API level 15
static val CONTENT_URI: Uri!

The Uri for querying color information