Interface CNContactPickerDelegate


  • public interface CNContactPickerDelegate
    API-Since: 9.0
    • Method Detail

      • contactPickerDidSelectContact

        default void contactPickerDidSelectContact​(@NotNull
                                                   @NotNull CNContactPickerViewController picker,
                                                   @NotNull
                                                   @NotNull CNContact contact)
        Singular delegate methods. These delegate methods will be invoked when the user selects a single contact or property.
      • contactPickerDidSelectContacts

        default void contactPickerDidSelectContacts​(@NotNull
                                                    @NotNull CNContactPickerViewController picker,
                                                    @NotNull
                                                    @NotNull NSArray<? extends CNContact> contacts)
        Plural delegate methods. These delegate methods will be invoked when the user is done selecting multiple contacts or properties. Implementing one of these methods will configure the picker for multi-selection.
      • contactPickerDidCancel

        default void contactPickerDidCancel​(@NotNull
                                            @NotNull CNContactPickerViewController picker)
        Invoked when the picker is closed. The picker will be dismissed automatically after a contact or property is picked.