Avaya Client Services API Reference (OS X)
Instance Methods | List of all members
<CSContactServiceDelegate> Protocol Reference

Describes methods that are implemented by the delegate of a CSContactService. More...

#import <CSContactService.h>

Inherits <NSObjectNSObject>.

Instance Methods

(void) - contactServiceAvailable:
 Called when the contact service becomes available for use. More...
 
(void) - contactServiceUnavailable:
 Called when the contact service becomes unavailable for use. More...
 
(void) - contactService:providerForSourceType:didFailWithError:
 Called when an underlying contact provider fails. More...
 
(void) - contactService:loadContactsCompleteForSource:doneLoadingAllSources:
 Called when contact loading from an underlying provider completed. More...
 
(void) - contactService:loadContactsFailedWithError:forSource:doneLoadingAllSources:
 Called when contact loading from an underlying provider fails. More...
 
(void) - contactService:loadContactGroupsFailedWithError:forSource:
 Called when contact groups loading from an underlying provider fails. More...
 
(void) - contactServiceDidReloadData:
 Called when the list of available contact providers changes. More...
 
(void) - contactServiceDidChangeCapabilities:
 Called when any of the contact service's capabilities changes. More...
 
(void) - contactService:didAddContacts:
 Called when contact were added. More...
 
(void) - contactService:didDeleteContacts:
 Called when contacts were deleted. More...
 
(void) - contactService:didAddContactGroups:
 Called when contact groups were added. More...
 
(void) - contactService:didDeleteContactGroups:
 Called when contact groups were deleted. More...
 
(void) - contactService:didUpdateSelfContact:
 Called when there is an update to contact information for the currently logged-in user. More...
 

Detailed Description

Describes methods that are implemented by the delegate of a CSContactService.

Method Documentation

- (void) contactService: (CSContactService *)  contactService
didAddContactGroups: (NSSet< CSContactGroup * > *)  contactGroups 

Called when contact groups were added.

Parameters
contactServiceThe contact service associated with the callback.
contactGroupsset of added contact groups.
- (void) contactService: (CSContactService *)  contactService
didAddContacts: (NSArray *)  contacts 

Called when contact were added.

Parameters
contactServiceThe contact service associated with the callback.
contactsvector of added contacts.
- (void) contactService: (CSContactService *)  contactService
didDeleteContactGroups: (NSSet< CSContactGroup * > *)  contactGroups 

Called when contact groups were deleted.

Parameters
contactServiceThe contact service associated with the callback.
contactGroupsset of deleted contact groups.
- (void) contactService: (CSContactService *)  contactService
didDeleteContacts: (NSArray *)  contacts 

Called when contacts were deleted.

Parameters
contactServiceThe contact service associated with the callback.
contactsvector of deleted contacts.
- (void) contactService: (CSContactService *)  contactService
didUpdateSelfContact: (CSContact *)  contact 

Called when there is an update to contact information for the currently logged-in user.

Parameters
contactServiceThe contact service associated with the callback.
contactcontact information for the currently logged-in user.
See also
-[retrieveSelfContactWithCompletionHandler:]
- (void) contactService: (CSContactService *)  contactService
loadContactGroupsFailedWithError: (NSError *)  error
forSource: (CSContactSourceType source 

Called when contact groups loading from an underlying provider fails.

Parameters
contactServiceThe contact service associated with the callback.
errorThe reason for contact groups not being loaded
sourceThe source that could not loading contact groups
- (void) contactService: (CSContactService *)  contactService
loadContactsCompleteForSource: (CSContactSourceType source
doneLoadingAllSources: (BOOL)  done 

Called when contact loading from an underlying provider completed.

Parameters
contactServiceThe contact service associated with the callback.
sourceThe source that is done loading contacts
doneYES 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
contactServiceThe contact service associated with the callback.
errorthe reason for contacts not being loaded
sourceThe source that is done loading contacts
doneYES 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.
- (void) contactService: (CSContactService *)  contactService
providerForSourceType: (CSContactSourceType sourceType
didFailWithError: (NSError *)  error 

Called when an underlying contact provider fails.

Parameters
contactServiceThe contact service associated with the callback.
sourceTypeThe contact source type that the failed provider is responsible for.
errorThe error code for the failure.
- (void) contactServiceAvailable: (CSContactService *)  contactService

Called when the contact service becomes available for use.

Parameters
contactServiceThe contact service associated with the callback.
- (void) contactServiceDidChangeCapabilities: (CSContactService *)  contactService

Called when any of the contact service's capabilities changes.

Parameters
contactServiceThe contact service associated with the callback.
- (void) contactServiceDidReloadData: (CSContactService *)  contactService

Called when the list of available contact providers changes.

For example, if ACS provider has stopped working, an event will be triggered.

Parameters
contactServiceThe contact service associated with the callback.
- (void) contactServiceUnavailable: (CSContactService *)  contactService

Called when the contact service becomes unavailable for use.

Parameters
contactServiceThe contact service associated with the callback.

The documentation for this protocol was generated from the following file: