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;
发送房间广播消息
| Parameters | |
|---|---|
| message | 消息内容,长度不超过256字节 |
| roomID | 房间 ID,最大长度为 128 字节的字符串。仅支持数字,英文字符 和 '~', '!', '@', '#', '$', '', '^', '&', '*', '(', ')', '_', '+', '=', '-', ', ';', '’', ',', '.', '<', '>', '/', '' |
| callback | 发送广播消息结果通知 |
sendBarrageMessage:roomID:callback:
- (void)sendBarrageMessage:(NSString *) message roomID:(NSString *) roomID callback:(ZegoIMSendBarrageMessageCallbacknullable ) callback;
发送房间弹幕消息
| Parameters | |
|---|---|
| message | 消息内容,长度不超过256字节 |
| roomID | 房间 ID,最大长度为 128 字节的字符串。仅支持数字,英文字符 和 '~', '!', '@', '#', '$', '', '^', '&', '*', '(', ')', '_', '+', '=', '-', ', ';', '’', ',', '.', '<', '>', '/', '' |
| callback | 发送弹幕消息结果通知 |
sendCustomCommand:toUserList:roomID:callback:
- (void)sendCustomCommand:(NSString *) command toUserList:(nullable NSArray< ZegoUser * > *) toUserList roomID:(NSString *) roomID callback:(ZegoIMSendCustomCommandCallbacknullable ) callback;
发送自定义信令
| Parameters | |
|---|---|
| command | 自定义信令内容,长度不超过256字节 |
| toUserList | 信令的接收者 |
| roomID | 房间 ID,最大长度为 128 字节的字符串。仅支持数字,英文字符 和 '~', '!', '@', '#', '$', '', '^', '&', '*', '(', ')', '_', '+', '=', '-', ', ';', '’', ',', '.', '<', '>', '/', '' |
| callback | 发送信令结果通知 |