Stay organized with collections
Save and categorize content based on your preferences.
ColorsColumns
protected interface ColorsColumns : SyncStateContract.Columns
Summary
Constants |
static String |
The color as an 8-bit ARGB integer value.
|
static String |
The key used to reference this color.
|
static String |
The type of color, which describes how it should be used.
|
static Int |
This indicateds a color that can be used for calendars.
|
static Int |
This indicates a color that can be used for events.
|
Inherited constants |
From class Columns
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
|
|
|
Constants
COLOR
static val COLOR: String
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)
Value: "color"
COLOR_KEY
static val COLOR_KEY: String
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
Value: "color_index"
COLOR_TYPE
static val COLOR_TYPE: String
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)
Value: "color_type"
TYPE_CALENDAR
static val TYPE_CALENDAR: Int
This indicateds a color that can be used for calendars.
Value: 0
TYPE_EVENT
static val TYPE_EVENT: Int
This indicates a color that can be used for events.
Value: 1
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# CalendarContract.ColorsColumns\n\nAdded in [API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nColorsColumns\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/CalendarContract.ColorsColumns \"View this page in Java\") \n\n```\nprotected interface ColorsColumns : SyncStateContract.Columns\n```\n\n|------------------------------------------------------|\n| [android.provider.CalendarContract.ColorsColumns](#) |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [CalendarContract.Colors](/reference/kotlin/android/provider/CalendarContract.Colors) |---------------------------------------------------------------------------------------|------------------------------------------------------------| | [CalendarContract.Colors](/reference/kotlin/android/provider/CalendarContract.Colors) | Fields for accessing colors available for a given account. | |\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [COLOR](#COLOR:kotlin.String) The color as an 8-bit ARGB integer value. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [COLOR_KEY](#COLOR_KEY:kotlin.String) The key used to reference this color. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [COLOR_TYPE](#COLOR_TYPE:kotlin.String) The type of color, which describes how it should be used. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TYPE_CALENDAR](#TYPE_CALENDAR:kotlin.Int) This indicateds a color that can be used for calendars. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TYPE_EVENT](#TYPE_EVENT:kotlin.Int) This indicates a color that can be used for events. |\n\n| Inherited constants ||\n|---|---|\n| From class [Columns](/reference/kotlin/android/provider/SyncStateContract.Columns) |----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_NAME](/reference/kotlin/android/provider/SyncStateContract.Columns#ACCOUNT_NAME:kotlin.String) A reference to the name of the account to which this data belongs Type: STRING \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCOUNT_TYPE](/reference/kotlin/android/provider/SyncStateContract.Columns#ACCOUNT_TYPE:kotlin.String) A reference to the type of the account to which this data belongs Type: STRING \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DATA](/reference/kotlin/android/provider/SyncStateContract.Columns#DATA:kotlin.String) The sync data associated with this account. Type: NONE \u003cbr /\u003e | ||\n| From class [BaseColumns](/reference/kotlin/android/provider/BaseColumns) |----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_COUNT](/reference/kotlin/android/provider/BaseColumns#_COUNT:kotlin.String) The count of rows in a directory. Type: INTEGER \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [_ID](/reference/kotlin/android/provider/BaseColumns#_ID:kotlin.String) The unique ID for a row. Type: INTEGER (long) \u003cbr /\u003e | ||\n\nConstants\n---------\n\n### COLOR\n\nAdded in [API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val COLOR: String\n```\n\nThe 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.\n\nType: INTEGER (NOT NULL) \n\n Value: \"color\"\n\n### COLOR_KEY\n\nAdded in [API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val COLOR_KEY: String\n```\n\nThe key used to reference this color. This can be any non-empty string, but must be unique for a given [ACCOUNT_TYPE](/reference/kotlin/android/provider/SyncStateContract.Columns#ACCOUNT_TYPE:kotlin.String) and [ACCOUNT_NAME](/reference/kotlin/android/provider/SyncStateContract.Columns#ACCOUNT_NAME:kotlin.String). Column name.\n\nType: TEXT \n\n Value: \"color_index\"\n\n### COLOR_TYPE\n\nAdded in [API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val COLOR_TYPE: String\n```\n\nThe type of color, which describes how it should be used. Valid types are [TYPE_CALENDAR](#TYPE_CALENDAR:kotlin.Int) and [TYPE_EVENT](#TYPE_EVENT:kotlin.Int). Column name.\n\nType: INTEGER (NOT NULL) \n\n Value: \"color_type\"\n\n### TYPE_CALENDAR\n\nAdded in [API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val TYPE_CALENDAR: Int\n```\n\nThis indicateds a color that can be used for calendars. \n\n Value: 0\n\n### TYPE_EVENT\n\nAdded in [API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val TYPE_EVENT: Int\n```\n\nThis indicates a color that can be used for events. \n\n Value: 1"]]