AndroidCalendarProvider

Manages locally stored calendars (represented by AndroidCalendar) in the Android calendar provider.

Parameters

account

Account that all operations are bound to

client

content provider client

Constructors

Link copied to clipboard
constructor(account: Account, client: ContentProviderClient)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun calendarUri(id: Long): Uri
Link copied to clipboard

Creates a new calendar and directly returns it.

Link copied to clipboard

Creates a new calendar.

Link copied to clipboard

Deletes an existing calendar.

Link copied to clipboard
fun findCalendars(where: String? = null, whereArgs: Array<String>? = null, sortOrder: String? = null): List<AndroidCalendar>

Queries existing calendars.

Link copied to clipboard
fun findFirstCalendar(where: String?, whereArgs: Array<String>?, sortOrder: String? = null): AndroidCalendar?

Queries existing calendars and returns the first calendar that matches the search criteria.

Link copied to clipboard

Gets an existing calendar by its ID.

Link copied to clipboard

Inserts all possible Css3Color values into the color index table of the account. This means that

Link copied to clipboard

Reads the calendar sync state (COLUMN_CALENDAR_SYNC_STATE field).

Link copied to clipboard

Unassigns colors from all events in this account and removes all entries from the color index table of the account.

Link copied to clipboard
fun updateCalendar(id: Long, values: ContentValues, where: String? = null, whereArgs: Array<String>? = null): Int

Updates an existing calendar.

Link copied to clipboard

Writes the calendar sync state (COLUMN_CALENDAR_SYNC_STATE field).