Invitations

Accept an Invitation

To accept an invitation, simply join the channel.

Request an Invitation

To request an invitation to join a channel:

VoiceLayerChannelInvitation invitation = channel.requestToJoin();

or

channel.requestToJoin(new VoiceLayerChannelRequestCallback() {

    @Override
    public void onChannelRequestCompleted(VoiceLayerChannelInvitation invitation, VoiceLayerException exception) {

    }

});

Decline an Invitation

To decline an invitation to a channel:

channel.declineInvitation();

or

channel.declineInvitation(new VoiceLayerRemoveCallback<VoiceLayerUser>() {

    @Override
    public void onRemoveCompleted(VoiceLayerUser user, VoiceLayerException exception) {

    }

});