Earmuff a Call Member

Overview

This guide covers earmuffing members of a conversation.

Before you begin, make sure you added the SDK to your app and you are able to make or receive calls.

Earmuff

Earmuff a member to disables the member from hearing other members. You can earmuff your own member or others.

member.earmuff(true);

//Earmuff my Member
conversation.me.earmuff(true);

NexmoRequestListener<CallMember> listener = new NexmoRequestListener<>() {
        @Override
        public void onError(NexmoApiError nexmoApiError) {
            //Handle error
        }

        @Override
        public void onSuccess(CallMember member) {
            //Handle success
        }
};

member.earmuff(ActionStatus.ON, listener);

//Earmuff my Member
call.earmuff(ActionStatus.ON, listener);

val listener = object : NexmoRequestListener<CallMember> {
    override fun onError(nexmoApiError: NexmoApiError) {
            TODO("Handle error")
        }

        override fun onSuccess(callMember: CallMember) {
            TODO("Handle success")
        }
    }

member.earmuff(ActionStatus.ON, listener)

//Earmuff my Member
call.earmuff(ActionStatus.ON, listener)

member.earmuff(true)

//Earmuff my Member
call.myCallMember.earmuff(true)

[callMember earmuff:YES];

//Earmuff my Member
[myCall.myCallMember earmuff:YES];