Skip to content

ContactsContainer

Collection of contacts.

If you're signed into multiple accounts on your device, you may have multiple contact containers. A contact can be in only one container. CardDAV accounts usually have a single container whereas Exchange accounts may have multiple containers. A container may have multiple groups. While a single contact can only belong to one container, a contact may belong to many groups.

identifier

Identifier of the contacts container.

identifier: string

name

Name of the contacts container.

name: string

+default

Fetches default contacts container.

static default(): Promise<ContactsContainer>

+all

Fetches all contacts containers.

static all(): Promise<[ContactsContainer]>

+withIdentifier

Fetches a contacts container.

static withIdentifier(identifier: string): Promise<ContactsContainer>