#
Interaction Open
#
Usage
Agent has given the interaction focus by opening it in the UI.
#
Syntax
webClient.onInteractionOpen(listener: Function);
#
Arguments
#
Sample Javascript
const callback = (response) => {
if (response.result)
alert(response.result);
}
webClient.onInteractionOpen(callback);
#
Response
This method is asynchronous. The response is returned in an object passed to a callback method. The response object contains the following fields.
Result
Example
success
Response
Returns this object if the API method call was invoked successfully, false otherwise.
{
agentInteractionId: number;
timestamp: number;
}