Channel Events

To handle channel notifications register a VoiceLayerChannelEventListener with the VoiceLayerClient:

client.setChannelEventListener(new VoiceLayerChannelEventListener() {

    @Override
    public void onInvitationReceivedForChannel(VoiceLayerChannel channel) {
        // Called when the authenticated user receives a channel invitation.
    }

    @Override
    public void onRequestedInvitationForChannel(VoiceLayerChannel channel) {
        // Called when the authenticated user requests a channel invitation.
    }

    @Override
    public void onLeftChannel(VoiceLayerChannel channel) {
        // Called when the authenticated user leaves a channel.
    }

    @Override
    public void onJoinedChannel(VoiceLayerChannel channel) {
        // Called when the authenticated user joins a channel.
    }

    @Override
    public void onChannelUpdated(VoiceLayerChannel channel) {
        // Called when a channel the authenticated user is associated with is updated.
    }

});