Most visited

Recently visited

Added in API level 14

CalendarContract.Reminders

public static final class CalendarContract.Reminders
extends Object implements BaseColumns, CalendarContract.RemindersColumns, CalendarContract.EventsColumns

java.lang.Object
   ↳ android.provider.CalendarContract.Reminders


用于访问活动提醒的字段和助手。 此表格的每一行代表一个事件的单个提醒。 调用query(ContentResolver, long, String[])将返回给定eventId事件的提醒列表。 应用程序和同步适配器都可以写入此表。 有三个可写字段,插入新提醒时必须包含所有字段。 他们是:

Summary

Inherited constants

From interface android.provider.BaseColumns
From interface android.provider.CalendarContract.RemindersColumns
From interface android.provider.CalendarContract.EventsColumns

Fields

public static final Uri CONTENT_URI

Public methods

static final Cursor query(ContentResolver cr, long eventId, String[] projection)

查询与给定事件相关的所有提醒。

Inherited methods

From class java.lang.Object

Fields

CONTENT_URI

Added in API level 14
Uri CONTENT_URI

Public methods

query

Added in API level 14
Cursor query (ContentResolver cr, 
                long eventId, 
                String[] projection)

查询与给定事件相关的所有提醒。 这是一个阻塞调用,不应该在UI线程上完成。

Parameters
cr ContentResolver: The content resolver to use for the query
eventId long: The id of the event to retrieve reminders for
projection String: the columns to return in the cursor
Returns
Cursor A Cursor containing all reminders for the event

Hooray!