JCClientDelegate ================ .. contents:: :depth: 3 :backlinks: top Overview -------- The delegate for `JCClient `_. The delegate is set by calling `initWithDelegate: `_. Methods ------- jc:videoAdded:view: +++++++++++++++++++ Called when a video stream view is created. .. code-block:: objc - (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. .. code-block:: objc - (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. .. code-block:: objc - (void)jc:(JCClient *)jc joined:(NSString *)userid; :jc: `JCClient `_ object :userid: User id string jc:left: ++++++++ Called when someone has left the room. .. code-block:: objc - (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. .. code-block:: objc - (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. .. code-block:: objc - (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. .. code-block:: objc - (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. .. code-block:: objc - (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. .. code-block:: objc - (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. .. code-block:: objc - (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. .. code-block:: objc - (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. .. code-block:: objc - (void)jc:(JCClient *)jc nameUpdated:(NSString *)userid name:(NSString *)name; :jc: `JCClient `_ object :userid: User id string :name: User name