Interface AddContactCompletionHandler


  • public interface AddContactCompletionHandler
    Defines an interface that the client application needs to implement to receive the result of an add contact operation.
    • Method Detail

      • onSuccess

        void onSuccess​(Contact contact,
                       boolean contactWasMerged)
        Reports that the operation was successfully completed.
        Parameters:
        contact - The contact which was added.
        contactWasMerged - Additional information indicating if the new contact was merged to an existing object. The contact is merged if they have at least one email address in common. When this value is true the contact count won't change after the add operation.
      • onError

        void onError​(ContactException error)
        Reports that the operation has failed.
        Parameters:
        error - Error code related to an add contact operation.