findEvent

fun findEvent(where: String?, whereArgs: Array<String>?, sortOrder: String? = null): AndroidEvent2?

Gets the first event from this calendar that matches the given query.

Adds a WHERE clause that restricts the query to CalendarContract.EventsColumns.CALENDAR_ID = id.

Return

first event from this calendar that matches the selection, or null if none found

Parameters

where

selection

whereArgs

arguments for selection

sortOrder

sort oder

Throws

when the content provider returns an error