The container may be local on the device or associated with a server account that has contacts.


enum CNContainerType : Int



case local

A container for contacts only stored locally on the device. There is only one local container for a device.

case exchange

A container for contacts stored in an Exchange folder from an Exchange server.

case cardDAV

A container for contacts stored in an CardDAV server, such as iCloud.

Enumeration Cases

See Also

Getting the Container Information

var name: String

The name of the container.

var identifier: String

The unique identifier for a contacts container on the device.

var type: CNContainerType

The type of the container.