java.lang.Object | |
↳ | android.provider.CalendarContract.Instances |
Fields and helpers for interacting with Instances. An instance is a single occurrence of an event including time zone specific start and end days and minutes. The instances table is not writable and only provides a way to query event occurrences.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BEGIN | The beginning time of the instance, in UTC milliseconds. | |||||||||
String | END | The ending time of the instance, in UTC milliseconds. | |||||||||
String | END_DAY | The Julian end day of the instance, relative to the local time zone. | |||||||||
String | END_MINUTE | The end minute of the instance measured from midnight in the local time zone. | |||||||||
String | EVENT_ID | The _id of the event for this instance. | |||||||||
String | START_DAY | The Julian start day of the instance, relative to the local time zone. | |||||||||
String | START_MINUTE | The start minute of the instance measured from midnight in the local time zone. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.provider.BaseColumns
| |||||||||||
From interface
android.provider.CalendarContract.EventsColumns
| |||||||||||
From interface
android.provider.CalendarContract.CalendarColumns
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CONTENT_BY_DAY_URI | The content:// style URL for querying an instance range by Julian Day. | ||||||||||
CONTENT_SEARCH_BY_DAY_URI | The content:// style URL for querying an instance range with a search term. | ||||||||||
CONTENT_SEARCH_URI | The content:// style URL for querying an instance range with a search term. | ||||||||||
CONTENT_URI | The content:// style URL for querying an instance range. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Performs a query to return all visible instances in the given range.
| |||||||||||
Performs a query to return all visible instances in the given range
that match the given query.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The beginning time of the instance, in UTC milliseconds. Column name.
Type: INTEGER (long; millis since epoch)
The ending time of the instance, in UTC milliseconds. Column name.
Type: INTEGER (long; millis since epoch)
The Julian end day of the instance, relative to the local time zone. Column name.
Type: INTEGER (int)
The end minute of the instance measured from midnight in the local time zone. Column name.
Type: INTEGER (int)
The _id of the event for this instance. Column name.
Type: INTEGER (long, foreign key to the Events table)
The Julian start day of the instance, relative to the local time zone. Column name.
Type: INTEGER (int)
The start minute of the instance measured from midnight in the local time zone. Column name.
Type: INTEGER (int)
The content:// style URL for querying an instance range by Julian Day. The start and end day should be added as path segments if this is used directly.
The content:// style URL for querying an instance range with a search term. The start day, end day, and search string should be appended as path segments if this is used directly.
The content:// style URL for querying an instance range with a search term. The begin, end, and search string should be appended as path segments if this is used directly.
The content:// style URL for querying an instance range. The begin and end of the range to query should be added as path segments if this is used directly.
Performs a query to return all visible instances in the given range. This is a blocking function and should not be done on the UI thread. This will cause an expansion of recurring events to fill this time range if they are not already expanded and will slow down for larger time ranges with many recurring events.
cr | The ContentResolver to use for the query |
---|---|
projection | The columns to return |
begin | The start of the time range to query in UTC millis since epoch |
end | The end of the time range to query in UTC millis since epoch |
Performs a query to return all visible instances in the given range that match the given query. This is a blocking function and should not be done on the UI thread. This will cause an expansion of recurring events to fill this time range if they are not already expanded and will slow down for larger time ranges with many recurring events.
cr | The ContentResolver to use for the query |
---|---|
projection | The columns to return |
begin | The start of the time range to query in UTC millis since epoch |
end | The end of the time range to query in UTC millis since epoch |
searchQuery | A string of space separated search terms. Segments enclosed by double quotes will be treated as a single term. |