Instance Property

identifier

The unique identifier for a contacts container on the device.

Declaration

iOS, Mac Catalyst, watchOS
@property(readonly, copy, nonatomic) NSString *identifier;
macOS
@property(readonly, copy, atomic) NSString *identifier;

Discussion

It is recommended that you use the identifier when re-fetching the container. The identifier can be persisted between app launches.

See Also

Getting the Container Information

name

The name of the container.

type

The type of the container.

CNContainerType

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