public interface NexmoReceiveConversationListener
Interface definition for a callback to be invoked when new conversation is received.
This listener is useful hen there is a need to transfer leg between conversations eg. after conversation with the customer agent leg is transferred to a new conversation with another customer (the leg keeps to be the same but now is pointing to a different conversation id).
Add receive conversation listener:
client.addReceiveConversationListener(new NexmoReceiveConversationListener(){
@Override
public void onReceiveConversation(NexmoConversation nexmoConversation) {
// Got a new conversation
}
});
| Modifier and Type | Method and Description |
|---|---|
void |
onReceiveConversation(NexmoConversation nexmoConversation)
Called when a new
NexmoConversation is received. |
void onReceiveConversation(NexmoConversation nexmoConversation)
NexmoConversation is received.nexmoConversation - The new conversation.