AndroidAddressBook

open class AndroidAddressBook<T1 : AndroidContact, T2 : AndroidGroup>(var addressBookAccount: Account, val provider: ContentProviderClient?, contactFactory: AndroidContactFactory<T1>, groupFactory: AndroidGroupFactory<T2>)

Constructors

Link copied to clipboard
constructor(addressBookAccount: Account, provider: ContentProviderClient?, contactFactory: AndroidContactFactory<T1>, groupFactory: AndroidGroupFactory<T2>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var readOnly: Boolean
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun allGroups(callback: (T2) -> Unit)
Link copied to clipboard
fun countContacts(where: String?, whereArgs: Array<String>?): Int

Counts the number of contacts in the address book that match the given selection criteria.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun queryContacts(where: String?, whereArgs: Array<String>?): List<T1>
Link copied to clipboard
fun queryGroups(where: String?, whereArgs: Array<String>?): List<T2>
fun queryGroups(where: String?, whereArgs: Array<String>?, callback: (T2) -> Unit)
Link copied to clipboard
Link copied to clipboard