Using the Avaya Co-Browsing Client SDK, you can configure Avaya Co-Browsing features for Customer website.
You must analyze and find out the fields which need to keep hidden from the Agent. You must apply CSS class to mask webpage fields. After CSS class is applied, contents of the fields will not be visible to the Agent.
Add a css class avcobrowse-block in the style.
Add a css class avcobrowse-mask in the element style.
Add a css class avcobrowse-hide in the element style.
Online Help
Use the enableHighlight() method to enable the Highlight feature. By default the Highlight feature is enabled.
_cbinstance.enableHighlight();
Use the disableHighlight() method to disable the Highlight feature.
_cbinstance.disableHighlight();
Use the enableElementHighlight() method to enable the Highlight element feature. By default the Highlight element feature is enabled.
_cbinstance.enableElementHighlight();
Use the disableElementHighlight() method to disable the Highlight element feature.
_cbinstance.disableElementHighlight();
To set color of highlighted text. The default value is yellow.
_cbinstance.setHighlightColor(color);
Note:Mouse double click for text selection to highlight selected text is not supported.
To add support for Psuedo elements and classes in Avaya Co-Browsing.
_cbinstance.setCSSHoverFile({"css": "one.css"});
//Set the CSS file name containing hover e.g
//For one CSS file {"css": "one.css"}
//For multiple CSS file {"css": "one.css, two.css, three.css"}
//For parsing all the CSS file {"css": ""}
To add support for css style having url property in Avaya Co-Browsing.
_cbinstance.addUrlPropertySelectors(urlProperties, selectors);
//Set multiple css style properties having url using comma separation e.g
("content,background")
//Set the html selectors applied with the urlProperties with comma separation e.g
//("span","div")
_cbinstance.addUrlPropertySelectors("content,background", "span,div");
To add support for Psuedo element ::Before having URL property.
_cbinstance.addClassSelForPseudoElemtBefore(urlProperties, classSelectorsBefore);
//e.g addClassSelForPseudoElemtBefore("content", ".icon-header[_ngcontent-wwx-c0]")
//urlProperties- Set multiple css style properties having url using comma separation e.g
//("content,background")
//classSelectorsBefore-Set selector class using pseudo element ::Before having URL property e.g
//(".icon-header[_ngcontent-wwx-c0]")
//Where .icon-header defined as .icon-header[_ngcontent-wwx-c0]::Before {content: url("chat-icon.png");}
To add support for Psuedo element ::After having URL property.
_cbinstance.addClassSelForPseudoElemtAfter(urlProperties, classSelectorsBefore);
//e.g addClassSelForPseudoElemtBefore("content", ".icon-header[_ngcontent-wwx-c0]")
//urlProperties- Set multiple css style properties having url using comma separation e.g
//("content,background")
//classSelectorsBefore-Set selector class using pseudo element ::After having URL property e.g
//(".icon-header[_ngcontent-wwx-c0]")
//Where .icon-header defined as .icon-header[_ngcontent-wwx-c0]::After {content: url("chat-icon.png");}
To set Agent view synchronization interval, you must provide time in milliseconds. This specifies the interval after which Customer web page synchronizes with the Agent if there are any changes in Customer webpage. The default value is 500.
_cbinstance.setAgentViewSyncInterval(agentViewSyncInterval);
To set connection retry attempts, you must provide time in milliseconds. This specifies the interval after which Customer service attempts to connect with Breeze server. The default value is 10000.
_cbinstance.setCustomerConnectionRetryInterval(connectionRetryInterval);
To set mouse and scroll synchronization interval, you must provide time in milliseconds. This specifies the interval after which the Customer synchronizes mouse trails and scroll position with the Agent. The default value is 1000.
_cbinstance.setMouseScrollSyncInterval(mouseScrollSyncInterval);
You can restrict HTML elements which you do not want to synchronize with the Agent webpage. You must provide ID of the DOM element.
_cbinstance.addElementIDToRemove("cbeToolbar");
To record inactivity timeout activities, you must provide time in seconds.
_cbinstance.updateIdleTime(_inactiveMessageCounter);
If any of the Iframes' content is Cross-origin in nature, it may cause error while sync between the Agent and the Customer. To overcome DOM sync failures, you can instruct the SDK not to show content of such Iframes on Agent side. If enabled, Agent will see blank Iframes for which content is Cross-origin in nature. It will not affect other Iframes which do not have Cross-Origin content.
_cbinstance.removeCrossOriginIFrameContent();
Configuration data is critical for initializing the Avaya Co-Browsing Client SDK. Services are created and initialized according to their corresponding configuration data during initialization. After the Client SDK is initialized, if you need to change any configuration options for any services or enable/disable certain services, the Avaya Co-Browsing Client SDK must be re-initialized with the updated configuration data. Dynamic changes of configuration options are not supported.