Stay organized with collections
Save and categorize content based on your preferences.
EventDays
class EventDays : CalendarContract.EventDaysColumns
Fields and helpers for querying for a list of days that contain events.
Summary
Public methods |
static Cursor! |
Retrieves the days with events for the Julian days starting at "startDay" for "numDays".
|
Public methods
query
static fun query(
cr: ContentResolver!,
startDay: Int,
numDays: Int,
projection: Array<String!>!
): Cursor!
Retrieves the days with events for the Julian days starting at "startDay" for "numDays". It returns a cursor containing startday and endday representing the max range of days for all events beginning on each startday.This is a blocking function and should not be done on the UI thread.
Parameters |
cr |
ContentResolver!: the ContentResolver |
startDay |
Int: the first Julian day in the range |
numDays |
Int: the number of days to load (must be at least 1) |
projection |
Array<String!>!: the columns to return in the cursor |
Return |
Cursor! |
a database cursor containing a list of start and end days for events |
Properties
CONTENT_URI
static val CONTENT_URI: Uri!
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.EventDays\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nEventDays\n=========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/provider/CalendarContract.EventDays \"View this page in Java\") \n\n```\nclass EventDays : CalendarContract.EventDaysColumns\n```\n\n|---|--------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.provider.CalendarContract.EventDays](#) |\n\nFields and helpers for querying for a list of days that contain events.\n\nSummary\n-------\n\n| Inherited constants ||\n|---|---|\n| From class [EventDaysColumns](/reference/kotlin/android/provider/CalendarContract.EventDaysColumns) |----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ENDDAY](/reference/kotlin/android/provider/CalendarContract.EventDaysColumns#ENDDAY:kotlin.String) The Julian ending day number. Column name. Type: INTEGER (int) \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STARTDAY](/reference/kotlin/android/provider/CalendarContract.EventDaysColumns#STARTDAY:kotlin.String) The Julian starting day number. Column name. Type: INTEGER (int) \u003cbr /\u003e | ||\n\n| Public methods ||\n|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [Cursor](../database/Cursor.html#)! | [query](#query(android.content.ContentResolver,%20kotlin.Int,%20kotlin.Int,%20kotlin.Array))`(`cr:` `[ContentResolver](../content/ContentResolver.html#)!`, `startDay:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `numDays:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `projection:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\u003e!`)` Retrieves the days with events for the Julian days starting at \"startDay\" for \"numDays\". |\n\n| Properties ||\n|---------------------------------|----------------------------------------------------|\n| static [Uri](../net/Uri.html#)! | [CONTENT_URI](#CONTENT_URI:android.net.Uri) \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### query\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun query(\n cr: ContentResolver!, \n startDay: Int, \n numDays: Int, \n projection: Array\u003cString!\u003e!\n): Cursor!\n```\n\nRetrieves the days with events for the Julian days starting at \"startDay\" for \"numDays\". It returns a cursor containing startday and endday representing the max range of days for all events beginning on each startday.This is a blocking function and should not be done on the UI thread.\n\n| Parameters ||\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `cr` | [ContentResolver](../content/ContentResolver.html#)!: the ContentResolver |\n| `startDay` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the first Julian day in the range |\n| `numDays` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the number of days to load (must be at least 1) |\n| `projection` | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\\\u003e!: the columns to return in the cursor |\n\n| Return ||\n|-------------------------------------|----------------------------------------------------------------------|\n| [Cursor](../database/Cursor.html#)! | a database cursor containing a list of start and end days for events |\n\nProperties\n----------\n\n### CONTENT_URI\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CONTENT_URI: Uri!\n```"]]