# CalendarContract.EventDays

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# EventDays

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/provider/CalendarContract.EventDays "View this page in Java")  

```
class EventDays : CalendarContract.EventDaysColumns
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                             ||
| ↳ | [android.provider.CalendarContract.EventDays](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventDays#) |

Fields and helpers for querying for a list of days that contain events.

## Summary

| Inherited constants ||
|---|---|
| From class[EventDaysColumns](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventDaysColumns) |----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ENDDAY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventDaysColumns#ENDDAY:kotlin.String) <br /> The Julian ending day number. Column name. Type: INTEGER (int) <br />       | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [STARTDAY](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventDaysColumns#STARTDAY:kotlin.String) <br /> The Julian starting day number. Column name. Type: INTEGER (int) <br /> | ||

|                                                                                                                                                                                                                                                                                                                                                                                                                              Public methods                                                                                                                                                                                                                                                                                                                                                                                                                               ||
|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)! | [query](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventDays#query(android.content.ContentResolver,%20kotlin.Int,%20kotlin.Int,%20kotlin.Array))`(`cr:` `[ContentResolver](https://developer.android.com/reference/kotlin/android/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)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>!`)` Retrieves the days with events for the Julian days starting at "startDay" for "numDays". |

|                                                                                                            Properties                                                                                                            ||
|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
| static[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#)! | [CONTENT_URI](https://developer.android.com/reference/kotlin/android/provider/CalendarContract.EventDays#CONTENT_URI:android.net.Uri) <br /> |

## Public methods

### query

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html#)!:the ContentResolver                                                                             |
| `startDay`   | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the first Julian day in the range                                                                                             |
| `numDays`    | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the number of days to load (must be at least 1)                                                                               |
| `projection` | [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!:the columns to return in the cursor |

|                                                                            Return                                                                             ||
|-----------------------------------------------------------------------------------------|----------------------------------------------------------------------|
| [Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html#)! | a database cursor containing a list of start and end days for events |

## Properties

### CONTENT_URI

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CONTENT_URI: Uri!
```