JCClientDelegate¶
Contents
Overview¶
The delegate for JCClient. The delegate is set by calling initWithDelegate:.
Methods¶
jc:videoAdded:view:¶
Called when a video stream view is created.
- (void)jc:(JCClient *)jc videoAdded:(NSString *)userid view:(JCGLVideoView *)view;
jc: | JCClient object |
---|---|
userid: | User id string |
view: | JCGLVideoView object that displays the video |
jc:videoRemoved:view:¶
Called when a video stream view is about to be deleted.
- (void)jc:(JCClient *)jc videoRemoved:(NSString *)userid view:(JCGLVideoView *)view;
jc: | JCClient object |
---|---|
userid: | User id string |
view: | JCGLVideoView object that displays the video |
jc:joined:¶
Called when someone has joined the room.
- (void)jc:(JCClient *)jc joined:(NSString *)userid;
jc: | JCClient object |
---|---|
userid: | User id string |
jc:left:¶
Called when someone has left the room.
- (void)jc:(JCClient *)jc left:(NSString *)userid;
jc: | JCClient object |
---|---|
userid: | User id string |
jc:textMessage:text:image:¶
Called when a text message has been sent.
- (void)jc:(JCClient *)jc textMessage:(NSString *)userid text:(NSString *)text image:(UIImage *)image;
jc: | JCClient object |
---|---|
userid: | User id string |
text: | Text message |
image: | Image of the avatar. this can be nil |
jc:broadcastState:state:¶
Called when the video or audio broadcast state changes.
- (void)jc:(JCClient *)jc broadcastState:(NSString *)userid state:(NSDictionary *)state;
jc: | JCClient object |
---|---|
userid: | User id string |
state: | Dictionary that can have video and audio as keys with values are BOOL |
jc:roomInfo:¶
Called when the room information has been updated. Currently the only password is set in the dictionary.
- (void)jc:(JCClient *)jc roomInfo:(NSDictionary *)info;
jc: | JCClient object |
---|---|
info: | Dictionary with the room information |
jc:locked:¶
Called as a response to joining a locked room.
- (void)jc:(JCClient *)jc locked:(BOOL)locked;
jc: | JCClient object |
---|---|
locked: | Boolean that will say the room is locked |
jc:knockAnswer:¶
Called after a knock request to enter the room has been sent to the admin of the room.
- (void)jc:(JCClient *)jc knockAnswer:(BOOL)answer;
jc: | JCClient object |
---|---|
answer: | Boolean whether you were allowed to enter the room or not |
jc:disconnected:¶
Called when the connection to the server is disconnected.
- (void)jc:(JCClient *)jc disconnected:(NSError *)error;
jc: | JCClient object |
---|---|
error: | NSError with information for the reason for the disconnect. Coule be nil |
jc:avatarUpdated:avatar:¶
Called when the avatar of a user is updated.
- (void)jc:(JCClient *)jc avatarUpdated:(NSString *)userid avatar:(UIImage *)avatar;
jc: | JCClient object |
---|---|
userid: | User id string |
avatar: | Avatar image |
jc:nameUpdated:name:¶
Called when the name of a user is updated.
- (void)jc:(JCClient *)jc nameUpdated:(NSString *)userid name:(NSString *)name;
jc: | JCClient object |
---|---|
userid: | User id string |
name: | User name |