An object that stores information about a single contact, such as the contact's first name, phone numbers, and addresses.

interface CNContact {
    contactType?: "Person" | "Organization";
    departmentName?: string;
    emailAddresses?: string[];
    givenName?: string;
    identifier?: string;
    jobTitle?: string;
    middleName?: string;
    namePrefix?: string;
    nameSuffix?: string;
    nickname?: string;
    note?: string;
    organizationName?: string;
    phoneNumbers?: string[];
    phoneticFamilyName?: string;
    phoneticGivenName?: string;
    phoneticMiddleName?: string;
    phoneticOrganizationName?: string;
    previousFamilyName?: string;
    urlAddresses?: string[];
}

Properties

contactType?: "Person" | "Organization"

the contact type.

departmentName?: string

The name of the department associated with the contact.

emailAddresses?: string[]

An array of email addresses for the contact.

givenName?: string

The given name of the contact.

The given name is often known as the first name of the contact.

identifier?: string

A value that uniquely identifies a contact on the device.

It is recommended that you use the identifier when re-fetching the contact. An identifier can be persisted between the app launches. Note that this identifier only uniquely identifies the contact on the current device.

jobTitle?: string

The contact’s job title.

middleName?: string

The middle name of the contact.

namePrefix?: string

The name prefix of the contact.

nameSuffix?: string

The name suffix of the contact.

nickname?: string

Nickname

note?: string

A string containing notes for the contact.

organizationName?: string

The name of the organization associated with the contact.

phoneNumbers?: string[]

An array of phone numbers for a contact.

phoneticFamilyName?: string
phoneticGivenName?: string
phoneticMiddleName?: string
phoneticOrganizationName?: string
previousFamilyName?: string

A string for the previous family name of the contact.

The previous family name is often known as the maiden name of the contact.

urlAddresses?: string[]

An array of URL addresses for a contact.