Stay organized with collections
Save and categorize content based on your preferences.
CalendarAlertsColumns
protected interface CalendarAlertsColumns
Summary
Constants |
static String |
The alarm time of the event, in UTC.
|
static String |
The start time of the event, in UTC.
|
static String |
The creation time of this database entry, in UTC.
|
static String |
The default sort order for this alerts queries
|
static String |
The end time of the event, in UTC.
|
static String |
The event that the alert belongs to.
|
static String |
The number of minutes that this alarm precedes the start time.
|
static String |
The time that the notification was created by the Calendar app, in UTC.
|
static String |
The time that the alarm broadcast was received by the Calendar app, in UTC.
|
static String |
The state of this alert.
|
static Int |
Once the user has dismissed the notification the alert's state should be set to dismissed so it is not fired again.
|
static Int |
After a notification for an alert has been created it should be updated to fired.
|
static Int |
An alert begins in this state when it is first created.
|
Constants
ALARM_TIME
static val ALARM_TIME: String
The alarm time of the event, in UTC. Column name.
Type: INTEGER (long; millis since epoch)
Value: "alarmTime"
BEGIN
static val BEGIN: String
The start time of the event, in UTC. Column name.
Type: INTEGER (long; millis since epoch)
Value: "begin"
CREATION_TIME
static val CREATION_TIME: String
The creation time of this database entry, in UTC. Useful for debugging missed reminders. Column name.
Type: INTEGER (long; millis since epoch)
Value: "creationTime"
DEFAULT_SORT_ORDER
static val DEFAULT_SORT_ORDER: String
The default sort order for this alerts queries
Value: "begin ASC,title ASC"
END
static val END: String
The end time of the event, in UTC. Column name.
Type: INTEGER (long; millis since epoch)
Value: "end"
EVENT_ID
static val EVENT_ID: String
The event that the alert belongs to. Column name.
Type: INTEGER (foreign key to the Events table)
Value: "event_id"
MINUTES
static val MINUTES: String
The number of minutes that this alarm precedes the start time. Column name.
Type: INTEGER
Value: "minutes"
NOTIFY_TIME
static val NOTIFY_TIME: String
The time that the notification was created by the Calendar app, in UTC. Useful for debugging missed reminders. Column name.
Type: INTEGER (long; millis since epoch)
Value: "notifyTime"
RECEIVED_TIME
static val RECEIVED_TIME: String
The time that the alarm broadcast was received by the Calendar app, in UTC. Useful for debugging missed reminders. Column name.
Type: INTEGER (long; millis since epoch)
Value: "receivedTime"
STATE
static val STATE: String
The state of this alert. It starts out as STATE_SCHEDULED
, then when the alarm goes off, it changes to STATE_FIRED
, and then when the user dismisses the alarm it changes to STATE_DISMISSED
. Column name.
Type: INTEGER
Value: "state"
STATE_DISMISSED
static val STATE_DISMISSED: Int
Once the user has dismissed the notification the alert's state should be set to dismissed so it is not fired again.
Value: 2
STATE_FIRED
static val STATE_FIRED: Int
After a notification for an alert has been created it should be updated to fired.
Value: 1
STATE_SCHEDULED
static val STATE_SCHEDULED: Int
An alert begins in this state when it is first created.
Value: 0
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# CalendarContract.CalendarAlertsColumns\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCalendarAlertsColumns\n=====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/CalendarContract.CalendarAlertsColumns \"View this page in Java\") \n\n```\nprotected interface CalendarAlertsColumns\n```\n\n|--------------------------------------------------------------|\n| [android.provider.CalendarContract.CalendarAlertsColumns](#) |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [CalendarContract.CalendarAlerts](/reference/kotlin/android/provider/CalendarContract.CalendarAlerts) |-------------------------------------------------------------------------------------------------------|---------------------------------------------------------------| | [CalendarContract.CalendarAlerts](/reference/kotlin/android/provider/CalendarContract.CalendarAlerts) | Fields and helpers for accessing calendar alerts information. | |\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ALARM_TIME](#ALARM_TIME:kotlin.String) The alarm time of the event, in UTC. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [BEGIN](#BEGIN:kotlin.String) The start time of the event, in UTC. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CREATION_TIME](#CREATION_TIME:kotlin.String) The creation time of this database entry, in UTC. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [DEFAULT_SORT_ORDER](#DEFAULT_SORT_ORDER:kotlin.String) The default sort order for this alerts queries |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [END](#END:kotlin.String) The end time of the event, in UTC. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EVENT_ID](#EVENT_ID:kotlin.String) The event that the alert belongs to. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MINUTES](#MINUTES:kotlin.String) The number of minutes that this alarm precedes the start time. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [NOTIFY_TIME](#NOTIFY_TIME:kotlin.String) The time that the notification was created by the Calendar app, in UTC. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [RECEIVED_TIME](#RECEIVED_TIME:kotlin.String) The time that the alarm broadcast was received by the Calendar app, in UTC. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STATE](#STATE:kotlin.String) The state of this alert. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [STATE_DISMISSED](#STATE_DISMISSED:kotlin.Int) Once the user has dismissed the notification the alert's state should be set to dismissed so it is not fired again. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [STATE_FIRED](#STATE_FIRED:kotlin.Int) After a notification for an alert has been created it should be updated to fired. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [STATE_SCHEDULED](#STATE_SCHEDULED:kotlin.Int) An alert begins in this state when it is first created. |\n\nConstants\n---------\n\n### ALARM_TIME\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val ALARM_TIME: String\n```\n\nThe alarm time of the event, in UTC. Column name.\n\nType: INTEGER (long; millis since epoch) \n\n Value: \"alarmTime\"\n\n### BEGIN\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val BEGIN: String\n```\n\nThe start time of the event, in UTC. Column name.\n\nType: INTEGER (long; millis since epoch) \n\n Value: \"begin\"\n\n### CREATION_TIME\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CREATION_TIME: String\n```\n\nThe creation time of this database entry, in UTC. Useful for debugging missed reminders. Column name.\n\nType: INTEGER (long; millis since epoch) \n\n Value: \"creationTime\"\n\n### DEFAULT_SORT_ORDER\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DEFAULT_SORT_ORDER: String\n```\n\nThe default sort order for this alerts queries \n\n Value: \"begin ASC,title ASC\"\n\n### END\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val END: String\n```\n\nThe end time of the event, in UTC. Column name.\n\nType: INTEGER (long; millis since epoch) \n\n Value: \"end\"\n\n### EVENT_ID\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val EVENT_ID: String\n```\n\nThe event that the alert belongs to. Column name.\n\nType: INTEGER (foreign key to the Events table) \n\n Value: \"event_id\"\n\n### MINUTES\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val MINUTES: String\n```\n\nThe number of minutes that this alarm precedes the start time. Column name.\n\nType: INTEGER \n\n Value: \"minutes\"\n\n### NOTIFY_TIME\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val NOTIFY_TIME: String\n```\n\nThe time that the notification was created by the Calendar app, in UTC. Useful for debugging missed reminders. Column name.\n\nType: INTEGER (long; millis since epoch) \n\n Value: \"notifyTime\"\n\n### RECEIVED_TIME\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val RECEIVED_TIME: String\n```\n\nThe time that the alarm broadcast was received by the Calendar app, in UTC. Useful for debugging missed reminders. Column name.\n\nType: INTEGER (long; millis since epoch) \n\n Value: \"receivedTime\"\n\n### STATE\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val STATE: String\n```\n\nThe state of this alert. It starts out as [STATE_SCHEDULED](#STATE_SCHEDULED:kotlin.Int), then when the alarm goes off, it changes to [STATE_FIRED](#STATE_FIRED:kotlin.Int), and then when the user dismisses the alarm it changes to [STATE_DISMISSED](#STATE_DISMISSED:kotlin.Int). Column name.\n\nType: INTEGER \n\n Value: \"state\"\n\n### STATE_DISMISSED\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val STATE_DISMISSED: Int\n```\n\nOnce the user has dismissed the notification the alert's state should be set to dismissed so it is not fired again. \n\n Value: 2\n\n### STATE_FIRED\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val STATE_FIRED: Int\n```\n\nAfter a notification for an alert has been created it should be updated to fired. \n\n Value: 1\n\n### STATE_SCHEDULED\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val STATE_SCHEDULED: Int\n```\n\nAn alert begins in this state when it is first created. \n\n Value: 0"]]