- (void)onError:(TUIError)error message:(NSString *)message;
Parameter | Type | Meaning |
error | Error Code | |
message | NSString * | Error Message |
- (void)onKickedOffLine:(NSString *)message;
Parameter | Type | Meaning |
message | NSString * | Kicked out description |
- (void)onUserSigExpired;
- (void)onRoomNameChanged:(NSString *)roomId roomName:(NSString *)roomName;
Parameter | Type | Meaning |
roomId | NSString * | Room ID |
roomName | NSString * | Room Name |
- (void)onAllUserMicrophoneDisableChanged:(NSString *)roomId isDisable:(BOOL)isDisable;
Parameter | Type | Meaning |
roomId | NSString * | Room ID |
isDisable | BOOL | Whether it is disabled |
- (void)onAllUserCameraDisableChanged:(NSString *)roomId isDisable:(BOOL)isDisable;
Parameter | Type | Meaning |
roomId | NSString * | Room ID |
isDisable | BOOL | Whether it is disabled |
- (void)onSendMessageForAllUserDisableChanged:(NSString *)roomId isDisable:(BOOL)isDisable;
- (void)onKickedOutOfRoom:(NSString *)roomId message:(NSString *)message;
Parameter | Type | Meaning |
roomId | NSString * | Room ID |
message | NSString * | Description of being kicked out |
- (void)onRoomDismissed:(NSString *)roomId;
Parameter | Type | Meaning |
roomId | NSString * | Room ID |
- (void)onRoomSpeechModeChanged:(NSString *)roomId speechMode:(TUISpeechMode)mode;
Parameter | Type | Meaning |
roomId | NSString * | Room ID |
mode | Mic control mode |
- (void)onRemoteUserEnterRoom:(NSString *)roomId userInfo:(TUIUserInfo *)userInfo;
Parameter | Type | Meaning |
roomId | NSString * | Room ID |
userInfo | User information |
- (void)onRemoteUserLeaveRoom:(NSString *)roomId userInfo:(TUIUserInfo *)userInfo;
Parameter | Type | Meaning |
roomId | NSString * | Room ID |
userInfo | User information |
- (void)onUserRoleChanged:(NSString *)userId userRole:(TUIRole)userRole;
Parameter | Type | Meaning |
userId | NSString * | User ID |
userRole | User Role |
- (void)onUserVideoStateChanged:(NSString *)userIdstreamType:(TUIVideoStreamType)streamTypehasVideo:(BOOL)hasVideoreason:(TUIChangeReason)reason;
Parameter | Type | Meaning |
userId | NSString * | User ID |
streamType | Streams type | |
hasVideo | BOOL | Whether there are streams |
reason | Reason for streams change |
- (void)onUserAudioStateChanged:(NSString *)userIdhasAudio:(BOOL)hasAudioreason:(TUIChangeReason)reason;
Parameter | Type | Meaning |
userId | NSString * | User ID |
hasAudio | BOOL | Whether there are Audio streams |
reason | Reason for Audio streams change |
- (void)onUserScreenCaptureStopped:(NSInteger)reason;
Parameter | Type | Meaning |
reason | NSInteger | Stop reason: 0: User actively stops 1: Screen window closing causes the stop 2: Screen Sharing display screen status change (such as interface being unplugged, Projection mode change, etc.) |
- (void)onRoomMaxSeatCountChanged:(NSString *)roomId maxSeatNumber:(NSInteger)maxSeatNumber;
Parameter | Type | Meaning |
roomId | NSString * | Room ID |
maxSeatNumber | NSInteger | Maximum number of mic slots in the room |
- (void)onUserVoiceVolumeChanged:(NSDictionary<NSString *, NSNumber *> *)volumeMap;
Parameter | Type | Meaning |
volumeMap | NSDictionary<NSString *, NSNumber *> * | Volume map |
- (void)onSendMessageForUserDisableChanged:(NSString *)roomIduserId:(NSString *)userIdisDisable:(BOOL)muted;
Parameter | Type | Meaning |
roomId | NSString * | Room ID |
userId | NSString * | User ID |
muted | BOOL | Whether it is prohibited to send text messages. |
- (void)onUserNetworkQualityChanged:(NSArray<TUINetworkInfo *> *)networkList;
Parameter | Type | Meaning |
networkList | Network status array, you can refer to TUINetworkInfo object |
- (void)onSeatListChanged:(NSArray<TUISeatInfo *> *)seatListseated:(NSArray<TUISeatInfo *> *)seatedListleft:(NSArray<TUISeatInfo *> *)leftList;
Parameter | Type | Meaning |
seatList | The latest user list on the mic, including newly on mic users | |
seatedList | Newly on mic user list | |
leftList | Newly off mic user list |
- (void)onKickedOffSeat:(NSString *)userId;
Parameter | Type | Meaning |
userId | NSString * | User ID |
- (void)onRequestReceived:(TUIRequest *)request;
Parameter | Type | Meaning |
request | Request content |
- (void)onRequestCancelled:(NSString *)requestId;
Parameter | Type | Meaning |
requestId | NSString * | Request ID |
- (void)onReceiveTextMessage:(NSString *)roomIdmessage:(TUIMessage *)message;
Parameter | Type | Meaning |
roomId | NSString * | Room ID |
message | Message content, detailed definition can refer to TUIRoomDefine.h file in TUIMessage definition |
- (void)onReceiveCustomMessage:(NSString *)roomIdmessage:(TUIMessage *)message;
Parameter | Type | Meaning |
roomId | NSString * | Room ID |
message | Message content |
Was this page helpful?