Channel User Events

To handle channel user notifications register a VoiceLayerChannelUserEventListener with the VoiceLayerClient:

client.setChannelUserEventListener(new VoiceLayerChannelUsersEventListener() {

    @Override
    public void onUserJoinedChannel(VoiceLayerUser user, VoiceLayerChannel channel) {
        // Called when a user joins a channel that the authenticated user is associated with.
    }

    @Override
    public void onUserLeftChannel(VoiceLayerUser user, VoiceLayerChannel channel) {
        // Called when a user leaves a channel that the authenticated user is associated with.
    }

    @Override
    public void onUserInvitedToChannel(VoiceLayerUser user, VoiceLayerChannel channel) {
        // Called when a user is invited to a channel that the authenticated user is associated with.
    }

    @Override
    public void onUserRequestedToJoinChannel(VoiceLayerUser user, VoiceLayerChannel channel) {
        // Called when a user requests an invitation to a channel that the authenticated user is associated with.
    }

    @Override
    public void onUserUpdatedInChannel(VoiceLayerUser user, VoiceLayerChannel channel) {
        // Called when a user is updated in a channel that the authenticated user is associated with.
    }

});