Type Method

descriptorForRequiredKeys(for:)

Returns the required key descriptor for the specified formatting style of the contact.

Declaration

class func descriptorForRequiredKeys(for style: CNContactFormatterStyle) -> CNKeyDescriptor

Parameters

style

The formatting style to be used for contact name.

Return Value

The contact key descriptor for the formatting style.

Discussion

Include this method with the keys to fetch when fetching contacts. To format multiple styles, you can include multiple key descriptors with the keys to fetch.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software