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.
Properties
Section titled “Properties”identifier
Section titled “identifier”Identifier of the contacts container.
identifier: stringRead-only.
Name of the contacts container.
name: stringRead-only.
Methods
Section titled “Methods”Fetches all contacts containers.
static all(): Promise<[ContactsContainer]>Return value
Section titled “Return value”Promise<[ContactsContainer]>
Promise that provides all contacts containers when fulfilled.
default()
Section titled “default()”Fetches default contacts container.
static default(): Promise<ContactsContainer>Return value
Section titled “Return value”Promise<ContactsContainer>
Promise that provides the default contacts container when fulfilled.
withIdentifier(identifier)
Section titled “withIdentifier(identifier)”Fetches a contacts container.
static withIdentifier(identifier: string): Promise<ContactsContainer>Parameters
Section titled “Parameters”identifier string
Identifier of the contacts container to fetch.
Return value
Section titled “Return value”Promise<ContactsContainer>
Promise that provides the contacts container when fulfilled.