public interface NexmoCustomEventListener
Interface definition for a callback to be invoked when a NexmoCustomEvent is received.
conversation.addCustomEventListener(new NexmoCustomEventListener() {
@Override
public void onCustomEvent(NexmoCustomEvent event) {
Log.d("NexmoCustomEvent", "Incoming custom event of type " + event.getCustomType() + ": " + event.getData());
}
});
| Modifier and Type | Method and Description |
|---|---|
void |
onCustomEvent(NexmoCustomEvent nexmoCustomEvent)
Dispatches when a
NexmoMember in NexmoConversation is updated. |
void onCustomEvent(NexmoCustomEvent nexmoCustomEvent)
NexmoMember in NexmoConversation is updated.nexmoCustomEvent - the dispatched custom event, in order to send a custom event in NexmoConversation call NexmoConversation.sendCustomEvent(String, HashMap, NexmoRequestListener)