Protocol

CNContactPickerDelegate

The methods that you implement to respond to contact-picker user events.

Declaration

protocol CNContactPickerDelegate

Topics

Responding to User Selections

func contactPicker(CNContactPickerViewController, didSelect: CNContact)

Called after a contact has been selected by the user.

func contactPicker(CNContactPickerViewController, didSelect: CNContactProperty)

Called when a property of the contact has been selected by the user.

func contactPicker(CNContactPickerViewController, didSelect: [CNContact])

Called after contacts have been selected by the user.

Dismissing the Picker Interface

func contactPickerDidCancel(CNContactPickerViewController)

In iOS, called when the user taps Cancel.

func contactPickerWillClose(CNContactPicker)

In macOS, called when the contact picker’s popover is about to close.

func contactPickerDidClose(CNContactPicker)

In macOS, called when the contact picker’s popover has closed.

Relationships

Inherits From

See Also

Responding to User Interactions

var delegate: CNContactPickerDelegate?

The delegate to be notified when the user selects a contact or a property.