AndroidCalendar

abstract class AndroidCalendar<out T : AndroidEvent>(val account: Account, val provider: ContentProviderClient, val eventFactory: AndroidEventFactory<T>, val id: Long)

Represents a locally stored calendar, containing AndroidEvents (whose data objects are Events). Communicates with the Android Contacts Provider which uses an SQLite database to store the events.

Constructors

Link copied to clipboard
constructor(account: Account, provider: ContentProviderClient, eventFactory: AndroidEventFactory<T>, id: Long)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var color: Int?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Long

the calendar ID (Calendars._ID)

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var name: String?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun delete(): Int
Link copied to clipboard
fun findById(id: Long): T
Link copied to clipboard
fun queryEvents(_where: String? = null, _whereArgs: Array<String>? = null): List<T>

Queries events from this calendar. Adds a WHERE clause that restricts the query to Events.CALENDAR_ID = id.

Link copied to clipboard