Stay organized with collections
Save and categorize content based on your preferences.
CalendarContract.CalendarAlertsColumns
protected
static
interface
CalendarContract.CalendarAlertsColumns
android.provider.CalendarContract.CalendarAlertsColumns
|
Known indirect subclasses
|
Summary
Constants |
String |
ALARM_TIME
The alarm time of the event, in UTC.
|
String |
BEGIN
The start time of the event, in UTC.
|
String |
CREATION_TIME
The creation time of this database entry, in UTC.
|
String |
DEFAULT_SORT_ORDER
The default sort order for this alerts queries
|
String |
END
The end time of the event, in UTC.
|
String |
EVENT_ID
The event that the alert belongs to.
|
String |
MINUTES
The number of minutes that this alarm precedes the start time.
|
String |
NOTIFY_TIME
The time that the notification was created by the Calendar app,
in UTC.
|
String |
RECEIVED_TIME
The time that the alarm broadcast was received by the Calendar app,
in UTC.
|
String |
STATE
The state of this alert.
|
int |
STATE_DISMISSED
Once the user has dismissed the notification the alert's state should
be set to dismissed so it is not fired again.
|
int |
STATE_FIRED
After a notification for an alert has been created it should be
updated to fired.
|
int |
STATE_SCHEDULED
An alert begins in this state when it is first created.
|
Constants
ALARM_TIME
public static final String ALARM_TIME
The alarm time of the event, in UTC. Column name.
Type: INTEGER (long; millis since epoch)
Constant Value:
"alarmTime"
BEGIN
public static final String BEGIN
The start time of the event, in UTC. Column name.
Type: INTEGER (long; millis since epoch)
Constant Value:
"begin"
CREATION_TIME
public static final String CREATION_TIME
The creation time of this database entry, in UTC.
Useful for debugging missed reminders. Column name.
Type: INTEGER (long; millis since epoch)
Constant Value:
"creationTime"
DEFAULT_SORT_ORDER
public static final String DEFAULT_SORT_ORDER
The default sort order for this alerts queries
Constant Value:
"begin ASC,title ASC"
END
public static final String END
The end time of the event, in UTC. Column name.
Type: INTEGER (long; millis since epoch)
Constant Value:
"end"
EVENT_ID
public static final String EVENT_ID
The event that the alert belongs to. Column name.
Type: INTEGER (foreign key to the Events table)
Constant Value:
"event_id"
MINUTES
public static final String MINUTES
The number of minutes that this alarm precedes the start time. Column
name.
Type: INTEGER
Constant Value:
"minutes"
NOTIFY_TIME
public static final String NOTIFY_TIME
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)
Constant Value:
"notifyTime"
RECEIVED_TIME
public static final String RECEIVED_TIME
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)
Constant Value:
"receivedTime"
STATE
public static final String STATE
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
Constant Value:
"state"
STATE_DISMISSED
public static final int STATE_DISMISSED
Once the user has dismissed the notification the alert's state should
be set to dismissed so it is not fired again.
Constant Value:
2
(0x00000002)
STATE_FIRED
public static final int STATE_FIRED
After a notification for an alert has been created it should be
updated to fired.
Constant Value:
1
(0x00000001)
STATE_SCHEDULED
public static final int STATE_SCHEDULED
An alert begins in this state when it is first created.
Constant Value:
0
(0x00000000)
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.CalendarAlertsColumns\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \n\nCalendarContract.CalendarAlertsColumns\n======================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/provider/CalendarContract.CalendarAlertsColumns \"View this page in Kotlin\") \\|Java\n\n\n`\nprotected\nstatic\n\n\ninterface\nCalendarContract.CalendarAlertsColumns\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------------|\n| android.provider.CalendarContract.CalendarAlertsColumns |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [CalendarContract.CalendarAlerts](/reference/android/provider/CalendarContract.CalendarAlerts) |------------------------------------------------------------------------------------------------|---------------------------------------------------------------| | [CalendarContract.CalendarAlerts](/reference/android/provider/CalendarContract.CalendarAlerts) | Fields and helpers for accessing calendar alerts information. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Constants ||\n|---------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](/reference/java/lang/String) | [ALARM_TIME](/reference/android/provider/CalendarContract.CalendarAlertsColumns#ALARM_TIME) The alarm time of the event, in UTC. |\n| [String](/reference/java/lang/String) | [BEGIN](/reference/android/provider/CalendarContract.CalendarAlertsColumns#BEGIN) The start time of the event, in UTC. |\n| [String](/reference/java/lang/String) | [CREATION_TIME](/reference/android/provider/CalendarContract.CalendarAlertsColumns#CREATION_TIME) The creation time of this database entry, in UTC. |\n| [String](/reference/java/lang/String) | [DEFAULT_SORT_ORDER](/reference/android/provider/CalendarContract.CalendarAlertsColumns#DEFAULT_SORT_ORDER) The default sort order for this alerts queries |\n| [String](/reference/java/lang/String) | [END](/reference/android/provider/CalendarContract.CalendarAlertsColumns#END) The end time of the event, in UTC. |\n| [String](/reference/java/lang/String) | [EVENT_ID](/reference/android/provider/CalendarContract.CalendarAlertsColumns#EVENT_ID) The event that the alert belongs to. |\n| [String](/reference/java/lang/String) | [MINUTES](/reference/android/provider/CalendarContract.CalendarAlertsColumns#MINUTES) The number of minutes that this alarm precedes the start time. |\n| [String](/reference/java/lang/String) | [NOTIFY_TIME](/reference/android/provider/CalendarContract.CalendarAlertsColumns#NOTIFY_TIME) The time that the notification was created by the Calendar app, in UTC. |\n| [String](/reference/java/lang/String) | [RECEIVED_TIME](/reference/android/provider/CalendarContract.CalendarAlertsColumns#RECEIVED_TIME) The time that the alarm broadcast was received by the Calendar app, in UTC. |\n| [String](/reference/java/lang/String) | [STATE](/reference/android/provider/CalendarContract.CalendarAlertsColumns#STATE) The state of this alert. |\n| `int` | [STATE_DISMISSED](/reference/android/provider/CalendarContract.CalendarAlertsColumns#STATE_DISMISSED) Once the user has dismissed the notification the alert's state should be set to dismissed so it is not fired again. |\n| `int` | [STATE_FIRED](/reference/android/provider/CalendarContract.CalendarAlertsColumns#STATE_FIRED) After a notification for an alert has been created it should be updated to fired. |\n| `int` | [STATE_SCHEDULED](/reference/android/provider/CalendarContract.CalendarAlertsColumns#STATE_SCHEDULED) An alert begins in this state when it is first created. |\n\nConstants\n---------\n\n### ALARM_TIME\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String ALARM_TIME\n```\n\nThe alarm time of the event, in UTC. Column name.\n\nType: INTEGER (long; millis since epoch)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"alarmTime\"\n\n\n### BEGIN\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String BEGIN\n```\n\nThe start time of the event, in UTC. Column name.\n\nType: INTEGER (long; millis since epoch)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"begin\"\n\n\n### CREATION_TIME\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String CREATION_TIME\n```\n\nThe creation time of this database entry, in UTC.\nUseful for debugging missed reminders. Column name.\n\nType: INTEGER (long; millis since epoch)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"creationTime\"\n\n\n### DEFAULT_SORT_ORDER\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String DEFAULT_SORT_ORDER\n```\n\nThe default sort order for this alerts queries\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"begin ASC,title ASC\"\n\n\n### END\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String END\n```\n\nThe end time of the event, in UTC. Column name.\n\nType: INTEGER (long; millis since epoch)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"end\"\n\n\n### EVENT_ID\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String EVENT_ID\n```\n\nThe event that the alert belongs to. Column name.\n\nType: INTEGER (foreign key to the Events table)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"event_id\"\n\n\n### MINUTES\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String MINUTES\n```\n\nThe number of minutes that this alarm precedes the start time. Column\nname.\n\nType: INTEGER\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"minutes\"\n\n\n### NOTIFY_TIME\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String NOTIFY_TIME\n```\n\nThe time that the notification was created by the Calendar app,\nin UTC. Useful for debugging missed reminders. Column name.\n\nType: INTEGER (long; millis since epoch)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"notifyTime\"\n\n\n### RECEIVED_TIME\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String RECEIVED_TIME\n```\n\nThe time that the alarm broadcast was received by the Calendar app,\nin UTC. Useful for debugging missed reminders. Column name.\n\nType: INTEGER (long; millis since epoch)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"receivedTime\"\n\n\n### STATE\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final String STATE\n```\n\nThe state of this alert. It starts out as [STATE_SCHEDULED](/reference/android/provider/CalendarContract.CalendarAlertsColumns#STATE_SCHEDULED), then\nwhen the alarm goes off, it changes to [STATE_FIRED](/reference/android/provider/CalendarContract.CalendarAlertsColumns#STATE_FIRED), and then when\nthe user dismisses the alarm it changes to [STATE_DISMISSED](/reference/android/provider/CalendarContract.CalendarAlertsColumns#STATE_DISMISSED). Column\nname.\n\nType: INTEGER\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"state\"\n\n\n### STATE_DISMISSED\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int STATE_DISMISSED\n```\n\nOnce the user has dismissed the notification the alert's state should\nbe set to dismissed so it is not fired again.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2\n(0x00000002)\n\n\n### STATE_FIRED\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int STATE_FIRED\n```\n\nAfter a notification for an alert has been created it should be\nupdated to fired.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\n### STATE_SCHEDULED\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int STATE_SCHEDULED\n```\n\nAn alert begins in this state when it is first created.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)"]]