public interface NexmoMediaEventListener
Interface definition for a callback to be invoked when media is enabled and disabled.
Add media event listener:
conversation.addMediaEventListener(new NexmoMediaEventListener() { @Override public void onMediaEnabled(@NonNull NexmoMediaEvent event) { Log.d("onMediaEnabled", "Got [" + event.getMediaType() + "] from:" + event.getFromMember()); } @Override public void onMediaDisabled(@NonNull NexmoMediaEvent event) { Log.d("onMediaDisabled", "Got [" + event.getMediaType() + "] from:" + event.getFromMember()); } });
Modifier and Type | Method and Description |
---|---|
void |
onMediaDisabled(NexmoMediaEvent nexmoMediaEvent)
Dispatches when media disabled related to a
NexmoConversation . |
void |
onMediaEnabled(NexmoMediaEvent nexmoMediaEvent)
Dispatches when media enabled related to a
NexmoConversation . |
void onMediaEnabled(NexmoMediaEvent nexmoMediaEvent)
NexmoConversation
.nexmoMediaEvent
- the dispatched NexmoMediaEvent
eventvoid onMediaDisabled(NexmoMediaEvent nexmoMediaEvent)
NexmoConversation
.nexmoMediaEvent
- the dispatched NexmoMediaEvent
event