Contact
data class Contact( val displayName: String, val initials: String = "", val givenName: String = "", val familyName: String = "", val companyName: String, val phoneNumbers: List<PhoneNumber>, val defaultPhoneNumberIndex: Int, val addresses: List<Address>, val defaultAddressIndex: Int, val source: ContactSource? = null, val favorite: Boolean, val image: DrawableResolver? = null, val primarySortKey: String, val alternativeSortKey: String) : Parcelable
Content copied to clipboard
Encapsulates an address book contact.
Constructors
Link copied to clipboard
fun Contact( displayName: String, initials: String = "", givenName: String = "", familyName: String = "", companyName: String, phoneNumbers: List<PhoneNumber>, defaultPhoneNumberIndex: Int, addresses: List<Address>, defaultAddressIndex: Int, source: ContactSource? = null, favorite: Boolean, image: DrawableResolver? = null, primarySortKey: String, alternativeSortKey: String)
Content copied to clipboard
Properties
Link copied to clipboard
The index of the default address. This is an index in the addresses list.
Link copied to clipboard
The index of the default phone number. This is an index of the phoneNumbers list.
Link copied to clipboard
Link copied to clipboard
Family name of the contact. This is the last name of a contact if the name is in Western style. See also FullNameStyle. This is an empty string if the contact does not have a family name set in the address book.
Link copied to clipboard
Given name of the contact. This is typically the contact's first name in Western names. See also FullNameStyle. This is an empty string if the contact does not have a given name set in the address book.
Link copied to clipboard
Functions
Link copied to clipboard
displayName, givenName, familyName, companyName, primarySortKey and alternativeSortKey are masked when the Contact is printed.