Avaya Client Services API Reference (iOS)
|
The CSButtonModuleService object is accessible from the CSUser object, providing access to the button customization feature. More...
#import <CSButtonModuleService.h>
Inherits NSObject.
Instance Methods | |
(NSArray *) | - availableCustomizedButtons |
Returns the list of available customized buttons. More... | |
(NSArray *) | - availableConsolidatedButtons |
Returns a consolidated button list consisting of customized buttons and non-customized but configured features. More... | |
(void) | - addButton:configuredLocation:customizedLocation:completionHandler: |
Adds a customized button at location given by user. More... | |
(void) | - removeButton:completionHandler: |
Removes the customized button from the button module. More... | |
(void) | - moveButton:customizedLocation:completionHandler: |
Moves a customized button to a location given by user. More... | |
(void) | - setButtonLabel:button:completionHandler: |
Updates the customized button with personalized label given by user. More... | |
Properties | |
id< CSButtonModuleServiceDelegate > | delegate |
The delegate responsible for handling button module service events. More... | |
BOOL | isServiceAvailable |
A Boolean value indicating whether the button module service is available. More... | |
The CSButtonModuleService object is accessible from the CSUser object, providing access to the button customization feature.
The CSButtonModuleService object provides a set of APIs that allow application developers to implement button customization features.
The client application is notified about list updates on customized buttons reported by the button module service through handlers that the application has registered on the CSButtonModuleService object. These updates may be the result of local operations on the CSButtonModuleService object as well as remote changes initiated by either the service/server or other end users.
- (void) addButton: | (CSCustomizedButton *) | button | |
configuredLocation: | (NSInteger) | configuredLocation | |
customizedLocation: | (NSInteger) | customizedLocation | |
completionHandler: | (void(^)(NSError *error)) | handler | |
Adds a customized button at location given by user.
button | Informational parameters for the button to be added. |
configuredLocation | Location of the button as configured on SMGR. |
customizedLocation | Location on the button module where the user wants to add the customized button. |
handler | A block to be called when the operation is completed.
|
- (NSArray *) availableConsolidatedButtons |
Returns a consolidated button list consisting of customized buttons and non-customized but configured features.
The customized location for non-customized but configured features will be the same as their configured location. If there is a customized button at the configured location, then the configured feature's customized location will be the next available free button module location.
- (NSArray *) availableCustomizedButtons |
Returns the list of available customized buttons.
- (void) moveButton: | (CSCustomizedButton *) | button | |
customizedLocation: | (NSInteger) | customizedLocation | |
completionHandler: | (void(^)(NSError *error)) | handler | |
Moves a customized button to a location given by user.
button | Informational parameters for the button to be moved. |
customizedLocation | Location on the button module where the user wants to move the customized button. |
handler | A block to be called when the operation is completed.
|
- (void) removeButton: | (CSCustomizedButton *) | button | |
completionHandler: | (void(^)(NSError *error)) | handler | |
Removes the customized button from the button module.
button | Informational parameters for the button to be removed. |
handler | A block to be called when the operation is completed.
|
- (void) setButtonLabel: | (NSString *) | label | |
button: | (CSCustomizedButton *) | button | |
completionHandler: | (void(^)(NSError *error)) | handler | |
Updates the customized button with personalized label given by user.
Existing personalized label can be reset to its default value by passing an empty label.
label | Personalized label for the customized button. |
button | Informational parameters for the button to be personalized. |
handler | A block to be called when the operation is completed.
|
|
readwritenonatomicweak |
The delegate responsible for handling button module service events.
|
readnonatomicassign |
A Boolean value indicating whether the button module service is available.