public interface NexmoMemberEventListener
Interface definition for a callback to be invoked when member was invited
(NexmoConversation.invite(String, NexmoRequestListener)
), added (NexmoConversation.join(NexmoRequestListener)
)
and removed (NexmoConversation.kick(String, NexmoRequestListener)
) from the conversation
.
Add member event listener:
conversation.addMemberEventListener(new NexmoMemberEventListener() { @Override public void onMemberInvited(@NonNull NexmoMemberEvent memberEvent, @NonNull NexmoMemberSummary memberSummary) { Log.d("onMemberInvited", "Got from:" + memberEvent.getMember().getMemberId()); } @Override public void onMemberAdded(@NonNull NexmoMemberEvent memberEvent, @NonNull NexmoMemberSummary memberSummary) { Log.d("onMemberAdded", "Got from:" + memberEvent.getMember().getMemberId()); } @Override public void onMemberRemoved(@NonNull NexmoMemberEvent memberEvent, @NonNull NexmoMemberSummary memberSummary) { Log.d("onMemberRemoved", "Got from:" + memberEvent.getMember().getMemberId()); } });
Modifier and Type | Method and Description |
---|---|
void |
onMemberAdded(NexmoMemberEvent event,
NexmoMemberSummary member)
|
void |
onMemberInvited(NexmoMemberEvent event,
NexmoMemberSummary member)
|
void |
onMemberRemoved(NexmoMemberEvent event,
NexmoMemberSummary member)
|
void onMemberInvited(NexmoMemberEvent event, NexmoMemberSummary member)
event
- the dispatched NexmoMemberEventmember
- the member invited NexmoMemberSummaryvoid onMemberAdded(NexmoMemberEvent event, NexmoMemberSummary member)
event
- the dispatched NexmoMemberEventmember
- the member added NexmoMemberSummaryvoid onMemberRemoved(NexmoMemberEvent event, NexmoMemberSummary member)
event
- the dispatched NexmoMemberEventmember
- the member removed NexmoMemberSummary