Interface CNContactViewControllerDelegate


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

      • contactViewControllerDidCompleteWithContact

        default void contactViewControllerDidCompleteWithContact​(@NotNull
                                                                 @NotNull CNContactViewController viewController,
                                                                 @Nullable
                                                                 @Nullable CNContact contact)
        Called when the view has completed. If creating a new contact, the new contact added to the contacts list will be passed. If adding to an existing contact, the existing contact will be passed. [@note] It is up to the delegate to dismiss the view controller.
      • contactViewControllerShouldPerformDefaultActionForContactProperty

        default boolean contactViewControllerShouldPerformDefaultActionForContactProperty​(@NotNull
                                                                                          @NotNull CNContactViewController viewController,
                                                                                          @NotNull
                                                                                          @NotNull CNContactProperty property)
        Called when the user selects a single property. Return @c NO if you do not want anything to be done or if you are handling the actions yourself.
        Returns: