Package apple.contactsui.protocol
Interface CNContactViewControllerDelegate
-
public interface CNContactViewControllerDelegateAPI-Since: 9.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidcontactViewControllerDidCompleteWithContact(@NotNull CNContactViewController viewController, @Nullable CNContact contact)Called when the view has completed.default booleancontactViewControllerShouldPerformDefaultActionForContactProperty(@NotNull CNContactViewController viewController, @NotNull CNContactProperty property)Called when the user selects a single property.
-
-
-
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:
-
-