다음을 통해 공유


CalendarContract.EventDays.Query Method

Definition

Retrieves the days with events for the Julian days starting at "startDay" for "numDays".

[Android.Runtime.Register("query", "(Landroid/content/ContentResolver;II[Ljava/lang/String;)Landroid/database/Cursor;", "")]
public static Android.Database.ICursor? Query (Android.Content.ContentResolver? cr, int startDay, int numDays, string[]? projection);
[<Android.Runtime.Register("query", "(Landroid/content/ContentResolver;II[Ljava/lang/String;)Landroid/database/Cursor;", "")>]
static member Query : Android.Content.ContentResolver * int * int * string[] -> Android.Database.ICursor

Parameters

cr
ContentResolver

the ContentResolver

startDay
Int32

the first Julian day in the range

numDays
Int32

the number of days to load (must be at least 1)

projection
String[]

the columns to return in the cursor

Returns

a database cursor containing a list of start and end days for events

Attributes

Remarks

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.

Java documentation for android.provider.CalendarContract.EventDays.query(android.content.ContentResolver, int, int, java.lang.String[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to