Avaya Client Services API Reference (OS X)
|
Represents an immutable contact object which exposes all possible contact details. More...
#import <CSContact.h>
Inherits NSObject, and <CSContact>.
Instance Methods | |
(void) | - retrievePictureWithCompletionHandler: |
Retrieve contact's Picture. More... | |
(BOOL) | - hasContactSourceType: |
Returns if this contact source type is set on contact. More... | |
(BOOL) | - hasPicture |
Returns if this contact has picture set on. More... | |
(void) | - startPresenceWithAccessControlBehavior:completionHandler: |
Begin monitoring presence for this contact. More... | |
(void) | - stopPresenceWithCompletionHandler: |
Stop monitoring presence for this contact. More... | |
(void) | - removePictureFromCache |
Removes contact's picture from cache. More... | |
(BOOL) | - canAddPhoneNumberOfType: |
(BOOL) | - canAddEmailAddressOfType: |
Represents an immutable contact object which exposes all possible contact details.
The contact object can also be used to subscribe for presence updates.
Contacts can be retrieved by using CSContactService methods retrieveContactsForSource:watcher: (CSContactService) or searchContactsWithSearchString:searchScope:searchLocation:maxNumberOfResults:maxChunkSize:watcher: (CSContactService). Both methods take a DataRetrievalWatcher argument which allows the application to be notified about the status of the operation and changes to the list of contacts retrieved.
This object cannot be used to edit the contact record. In order to update a contact record the following steps are required:
- (BOOL) canAddEmailAddressOfType: | (CSContactEmailAddressType) | type |
- (BOOL) canAddPhoneNumberOfType: | (CSContactPhoneNumberType) | type |
Reimplemented from <CSContact>.
- (BOOL) hasContactSourceType: | (CSContactSourceType) | contactSourceType |
Returns if this contact source type is set on contact.
- (BOOL) hasPicture |
Returns if this contact has picture set on.
- (void) removePictureFromCache |
Removes contact's picture from cache.
This method helps to manage the application memory. When the contact picture is not needed, it can be removed and downloaded again in the future.
- (void) retrievePictureWithCompletionHandler: | (void(^)(NSData *pictureData, NSError *error)) | completionHandler |
Retrieve contact's Picture.
completionHandler | A block to be called when the operation is completed.
|
- (void) startPresenceWithAccessControlBehavior: | (CSAccessControlBehavior) | accessControlBehavior | |
completionHandler: | (void(^)(NSError *error)) | completionHandler | |
Begin monitoring presence for this contact.
Once the operation is completed, presence will return the actual presence information for the contact.
accessControlBehavior | Type of the ACL-confirm policy handling. |
completionHandler | Completion handler that is invoked once the operation completes.
|
- (void) stopPresenceWithCompletionHandler: | (void(^)(NSError *error)) | completionHandler |
Stop monitoring presence for this contact.
Once the operation is completed, presence will not be able to provide actual user's presence information.
completionHandler | Completion handler that is invoked once the operation completes.
|
|
readnonatomicassign |
|
readnonatomicassign |
The native alias.
|
readnonatomicassign |
The non-localized alias.
|
readnonatomicassign |
The non-localized display name.
|
readnonatomicassign |
The non-localized first name.
|
readnonatomicassign |
The non-localized last name.
|
readnonatomicassign |
|
readnonatomicassign |
|
readnonatomicassign |
The city.
|
readnonatomicassign |
The company.
|
readnonatomicassign |
Returns list of contact sources.
|
readnonatomicassign |
The country.
|
readnonatomicassign |
The list of custom1 values.
|
readnonatomicassign |
The list of custom2 values.
|
readnonatomicassign |
The list of custom3 values.
|
readwritenonatomicweak |
This delegate responsible for handling updates for this contact.
|
readnonatomicassign |
|
readnonatomicassign |
The department.
|
readnonatomicassign |
The native display name.
|
readnonatomicassign |
The list of email addresses.
|
readnonatomicassign |
The list extra fields used for local contacts.
|
readnonatomicassign |
The favorite flag.
|
readnonatomicassign |
The native first name.
|
readnonatomicassign |
Contact's list of instant messaging addresses.
|
readnonatomicassign |
The buddy flag.
Used for presence feature purpose.
|
readnonatomicassign |
|
readnonatomicassign |
The VIP flag.
|
readnonatomicassign |
The language is per contact record.
|
readnonatomicassign |
The native last name.
|
readnonatomicassign |
The location.
|
readnonatomicassign |
The name of a person who is a supervisor.
|
readnonatomicassign |
The notes field.
|
readnonatomicassign |
The list of phone numbers.
|
readnonatomicassign |
The postal code.
|
readnonatomicassign |
The presence state of this contact.
Note that for the presence to start being updated, startPresenceWithAccessControlBehavior:completionHandler: must be invoked.
|
readnonatomicassign |
The rank field defining the contact sorting order.
|
readnonatomicassign |
The state.
|
readnonatomicassign |
The street address.
|
readnonatomicassign |
The title or company role.
|
readnonatomicassign |
The matching/merging address.
That parameter can be used as a record’s unique id.
|
readnonatomicassign |
|
readnonatomicassign |