Contact

data class Contact(val id: String, val uri: Uri, val name: String, val phoneNumbers: List<PhoneNumber> = emptyList(), val emailAddresses: List<EmailAddress> = emptyList(), val postalAddresses: List<PostalAddress> = emptyList(), val customActions: List<CustomContactAction> = emptyList(), val photoUri: Uri? = null)

Constructors

Link copied to clipboard
constructor(id: String, uri: Uri, name: String, phoneNumbers: List<PhoneNumber> = emptyList(), emailAddresses: List<EmailAddress> = emptyList(), postalAddresses: List<PostalAddress> = emptyList(), customActions: List<CustomContactAction> = emptyList(), photoUri: Uri? = null)

Properties

Link copied to clipboard

List of additional actions to contact this person. For example, call on WhatsApp, send a message on Telegram, etc.

Link copied to clipboard

List of email addresses for this contact.

Link copied to clipboard
val id: String

A unique and stable identifier for this contact.

Link copied to clipboard

The display name for this contact. First name + last name, if applicable.

Link copied to clipboard

List of phone numbers for this contact.

Link copied to clipboard
val photoUri: Uri? = null

The URI of the contact's photo. This is a data URI, and the launcher will use it to display the contact's photo. If null, the launcher will use a default icon.

Link copied to clipboard

List of postal addresses for this contact.

Link copied to clipboard
val uri: Uri

The URI to view this contact.