public interface NexmoDTMFEventListener
Interface definition for a callback to be invoked when a NexmoDTMFEvent
is received.
Receive DTMF event:
conversation.addDTMFEventListener(new NexmoDTMFEventListener() { @Override public void onDTMF(NexmoDTMFEvent nexmoDTMFEvent) { Log.d("NexmoRequestListener", "Digit " + nexmoDTMFEvent.getDigit() "received from " + nexmoDTMFEvent.getMember()); } });
Modifier and Type | Method and Description |
---|---|
void |
onDTMF(NexmoDTMFEvent event)
Dispatches when a
NexmoDTMFEvent occurs in a NexmoConversation . |
void onDTMF(NexmoDTMFEvent event)
NexmoDTMFEvent
occurs in a NexmoConversation
.event
- the dispatched DTMF event, in order to send DTMF event in NexmoConversation call NexmoConversation.sendDTMF(String, NexmoRequestListener)