AndroidContact

open class AndroidContact(val addressBook: AndroidAddressBook<out AndroidContact, out AndroidGroup>)

Constructors

Link copied to clipboard
constructor(addressBook: AndroidAddressBook<out AndroidContact, out AndroidGroup>, _contact: Contact, _fileName: String?, _eTag: String?)

Creates a new instance, initialized with some metadata. Usually used to insert a contact to an address book.

constructor(addressBook: AndroidAddressBook<out AndroidContact, out AndroidGroup>, values: ContentValues)

Creates a new instance, initialized with metadata from the content provider. Usually used when reading a contact from an address book.

constructor(addressBook: AndroidAddressBook<out AndroidContact, out AndroidGroup>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var eTag: String?
Link copied to clipboard
Link copied to clipboard
var id: Long?
Link copied to clipboard

Functions

Link copied to clipboard
fun add(): Uri
Link copied to clipboard
Link copied to clipboard
fun delete(): Int

Deletes an existing contact from the contacts provider.

Link copied to clipboard

Fetches contact data from the contacts provider.

Link copied to clipboard
Link copied to clipboard
fun setContact(newContact: Contact)
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun update(data: Contact): Uri