JCClient.Callback¶
- public interface Callback¶
JumpChat callback interface for JCClient. Application should implement this interface to provide to the JCClient constructor.
Methods¶
onDCBroadcastState¶
onDCDataMessage¶
- void onDCDataMessage(String userid, JSONObject msg)¶
Received a custom data message from user.
Parameters: - userid – User id of the sender
- msg – JSON object of the message
onDCJoined¶
onDCTextMessage¶
onDCUpdateAvatar¶
onDCUpdateName¶
onJoinFailed¶
onKnocking¶
onRoomCreated¶
onRoomInfoUpdated¶
- void onRoomInfoUpdated()¶
Called when the room information has been updated. For example, when someone is knocking on the room. This is only called when user is the admin.
onSetVideoSize¶
onSocketError¶
onVersionCheck¶
onVideoAdded¶
- void onVideoAdded(String userid, String videoid, JCVideoView view)¶
Called when a video of a user is added.
Parameters: - userid – User id of the owner of the video
- videoid – Unique video id
- view – Video view