public static final class CalendarContract.Instances extends Object implements BaseColumns, CalendarContract.EventsColumns, CalendarContract.CalendarColumns
Modifier and Type | Field and Description |
---|---|
static String |
BEGIN
The beginning time of the instance, in UTC milliseconds.
|
static Uri |
CONTENT_BY_DAY_URI
The content:// style URL for querying an instance range by Julian
Day.
|
static Uri |
CONTENT_SEARCH_BY_DAY_URI
The content:// style URL for querying an instance range with a search
term.
|
static Uri |
CONTENT_SEARCH_URI
The content:// style URL for querying an instance range with a search
term.
|
static Uri |
CONTENT_URI
The content:// style URL for querying an instance range.
|
static String |
END
The ending time of the instance, in UTC milliseconds.
|
static String |
END_DAY
The Julian end day of the instance, relative to the local time
zone.
|
static String |
END_MINUTE
The end minute of the instance measured from midnight in the
local time zone.
|
static String |
EVENT_ID
The _id of the event for this instance.
|
static String |
START_DAY
The Julian start day of the instance, relative to the local time
zone.
|
static String |
START_MINUTE
The start minute of the instance measured from midnight in the
local time zone.
|
_COUNT, _ID
ACCESS_CONFIDENTIAL, ACCESS_DEFAULT, ACCESS_LEVEL, ACCESS_PRIVATE, ACCESS_PUBLIC, ALL_DAY, AVAILABILITY, AVAILABILITY_BUSY, AVAILABILITY_FREE, AVAILABILITY_TENTATIVE, CALENDAR_ID, CAN_INVITE_OTHERS, CUSTOM_APP_PACKAGE, CUSTOM_APP_URI, DESCRIPTION, DISPLAY_COLOR, DTEND, DTSTART, DURATION, EVENT_COLOR, EVENT_COLOR_KEY, EVENT_END_TIMEZONE, EVENT_LOCATION, EVENT_TIMEZONE, EXDATE, EXRULE, GUESTS_CAN_INVITE_OTHERS, GUESTS_CAN_MODIFY, GUESTS_CAN_SEE_GUESTS, HAS_ALARM, HAS_ATTENDEE_DATA, HAS_EXTENDED_PROPERTIES, IS_ORGANIZER, LAST_DATE, LAST_SYNCED, ORGANIZER, ORIGINAL_ALL_DAY, ORIGINAL_ID, ORIGINAL_INSTANCE_TIME, ORIGINAL_SYNC_ID, RDATE, RRULE, SELF_ATTENDEE_STATUS, STATUS, STATUS_CANCELED, STATUS_CONFIRMED, STATUS_TENTATIVE, SYNC_DATA1, SYNC_DATA10, SYNC_DATA2, SYNC_DATA3, SYNC_DATA4, SYNC_DATA5, SYNC_DATA6, SYNC_DATA7, SYNC_DATA8, SYNC_DATA9, TITLE, UID_2445
ALLOWED_ATTENDEE_TYPES, ALLOWED_AVAILABILITY, ALLOWED_REMINDERS, CAL_ACCESS_CONTRIBUTOR, CAL_ACCESS_EDITOR, CAL_ACCESS_FREEBUSY, CAL_ACCESS_NONE, CAL_ACCESS_OVERRIDE, CAL_ACCESS_OWNER, CAL_ACCESS_READ, CAL_ACCESS_RESPOND, CAL_ACCESS_ROOT, CALENDAR_ACCESS_LEVEL, CALENDAR_COLOR, CALENDAR_COLOR_KEY, CALENDAR_DISPLAY_NAME, CALENDAR_TIME_ZONE, CAN_MODIFY_TIME_ZONE, CAN_ORGANIZER_RESPOND, IS_PRIMARY, MAX_REMINDERS, OWNER_ACCOUNT, SYNC_EVENTS, VISIBLE
Modifier and Type | Method and Description |
---|---|
static Cursor |
query(ContentResolver cr,
String[] projection,
long begin,
long end)
Performs a query to return all visible instances in the given range.
|
static Cursor |
query(ContentResolver cr,
String[] projection,
long begin,
long end,
String searchQuery)
Performs a query to return all visible instances in the given range
that match the given query.
|
public static final Uri CONTENT_URI
public static final Uri CONTENT_BY_DAY_URI
public static final Uri CONTENT_SEARCH_URI
public static final Uri CONTENT_SEARCH_BY_DAY_URI
public static final String BEGIN
Type: INTEGER (long; millis since epoch)
public static final String END
Type: INTEGER (long; millis since epoch)
public static final String EVENT_ID
Type: INTEGER (long, foreign key to the Events table)
public static final String START_DAY
Type: INTEGER (int)
public static final String END_DAY
Type: INTEGER (int)
public static final String START_MINUTE
Type: INTEGER (int)
public static final String END_MINUTE
Type: INTEGER (int)
public static final Cursor query(ContentResolver cr, String[] projection, long begin, long end)
cr
- The ContentResolver to use for the queryprojection
- The columns to returnbegin
- The start of the time range to query in UTC millis since
epochend
- The end of the time range to query in UTC millis since
epochpublic static final Cursor query(ContentResolver cr, String[] projection, long begin, long end, String searchQuery)
cr
- The ContentResolver to use for the queryprojection
- The columns to returnbegin
- The start of the time range to query in UTC millis since
epochend
- The end of the time range to query in UTC millis since
epochsearchQuery
- A string of space separated search terms. Segments
enclosed by double quotes will be treated as a single
term.