Describes methods that are implemented by the delegate of a CSContactService
.
More...
#import <CSContactService.h>
Inherits <NSObjectNSObject>.
Describes methods that are implemented by the delegate of a CSContactService
.
Called when contact groups were added.
- Parameters
-
contactService | The contact service associated with the callback. |
contactGroups | set of added contact groups. |
- (void) contactService: |
|
(CSContactService *) |
contactService |
didAddContacts: |
|
(NSArray *) |
contacts |
|
|
| |
Called when contact were added.
- Parameters
-
contactService | The contact service associated with the callback. |
contacts | vector of added contacts. |
Called when contact groups were deleted.
- Parameters
-
contactService | The contact service associated with the callback. |
contactGroups | set of deleted contact groups. |
- (void) contactService: |
|
(CSContactService *) |
contactService |
didDeleteContacts: |
|
(NSArray *) |
contacts |
|
|
| |
Called when contacts were deleted.
- Parameters
-
contactService | The contact service associated with the callback. |
contacts | vector of deleted contacts. |
Called when there is an update to contact information for the currently logged-in user.
- Parameters
-
contactService | The contact service associated with the callback. |
contact | contact information for the currently logged-in user. |
- See also
- -[retrieveSelfContactWithCompletionHandler:]
Called when contact groups loading from an underlying provider fails.
- Parameters
-
contactService | The contact service associated with the callback. |
error | The reason for contact groups not being loaded |
source | The source that could not loading contact groups |
Called when contact loading from an underlying provider completed.
- Parameters
-
contactService | The contact service associated with the callback. |
source | The source that is done loading contacts |
done | YES when all sources have completed their attempt to load contacts. |
- (void) contactService: |
|
(CSContactService *) |
contactService |
loadContactsFailedWithError: |
|
(NSError *) |
error |
forSource: |
|
(CSContactSourceType) |
source |
doneLoadingAllSources: |
|
(BOOL) |
done |
|
|
| |
Called when contact loading from an underlying provider fails.
- Parameters
-
contactService | The contact service associated with the callback. |
error | the reason for contacts not being loaded |
source | The source that is done loading contacts |
done | YES when all sources have completed their attempt to load contacts, UI can ignore the source type when this set to YES, NO if some sources are still loading. |
Called when an underlying contact provider fails.
- Parameters
-
contactService | The contact service associated with the callback. |
sourceType | The contact source type that the failed provider is responsible for. |
error | The error code for the failure. |
Called when the contact service becomes available for use.
- Parameters
-
contactService | The contact service associated with the callback. |
- (void) contactServiceDidChangeCapabilities: |
|
(CSContactService *) |
contactService |
|
Called when any of the contact service's capabilities changes.
- Parameters
-
contactService | The contact service associated with the callback. |
Called when the list of available contact providers changes.
For example, if ACS provider has stopped working, an event will be triggered.
- Parameters
-
contactService | The contact service associated with the callback. |
Called when the contact service becomes unavailable for use.
- Parameters
-
contactService | The contact service associated with the callback. |
The documentation for this protocol was generated from the following file: