ZegoExpressEngine(IM)

Declared in ZegoExpressEngine+IM.h

Includes

Public-Func Lists

Public-Func Docs

sendBroadcastMessage:roomID:callback:

- (void)sendBroadcastMessage:(NSString *) message roomID:(NSString *) roomID callback:(ZegoIMSendBroadcastMessageCallbacknullable ) callback;

Send room broadcast message.

Parameters
message Message content, no longer than 256 bytes
roomID Room ID, a string of up to 128 bytes in length. Only support numbers, English characters and '~', '!', '@', '#', '$', '', '^', '&', '*', '(', ')', '_', '+', '=', '-', ', ';', '’', ',', '.', '<', '>', '/', ''
callback Send broadcast message result callback

sendBarrageMessage:roomID:callback:

- (void)sendBarrageMessage:(NSString *) message roomID:(NSString *) roomID callback:(ZegoIMSendBarrageMessageCallbacknullable ) callback;

Send room barrage message.

Parameters
message Message content, no longer than 256 bytes
roomID Room ID, a string of up to 128 bytes in length. Only support numbers, English characters and '~', '!', '@', '#', '$', '', '^', '&', '*', '(', ')', '_', '+', '=', '-', ', ';', '’', ',', '.', '<', '>', '/', ''
callback Send barrage message result callback

sendCustomCommand:toUserList:roomID:callback:

- (void)sendCustomCommand:(NSString *) command toUserList:(nullable NSArray< ZegoUser * > *) toUserList roomID:(NSString *) roomID callback:(ZegoIMSendCustomCommandCallbacknullable ) callback;

Send custom command.

Parameters
command Custom command content, no longer than 256 bytes
toUserList The users who will receive the command
roomID Room ID, a string of up to 128 bytes in length. Only support numbers, English characters and '~', '!', '@', '#', '$', '', '^', '&', '*', '(', ')', '_', '+', '=', '-', ', ';', '’', ',', '.', '<', '>', '/', ''
callback Send command result callback