cn.tee3.avd_SDK-Objectc  2.1.0
构造函数 | 类方法 | 属性 | 所有成员列表
AVDChat类 参考

房间中聊天模块接口. 更多...

类 AVDChat 继承关系图:
AVDModule

构造函数

(AVDResult- sendPublicMessage:
 发送公聊消息 更多...
 
(AVDResult- sendPrivateMessage:toUser:
 发送私聊消息 更多...
 
(NSMutableArray *) - getPublicHistoryMessage:begin:count:
 获取公聊历史消息记录 更多...
 
(NSMutableArray *) - getPrivateHistoryMessage:begin:count:userId:
 获取私聊历史消息记录 更多...
 
((unavailable("init is not a supported initializer for this class.") - __attribute__
 
- 构造函数 继承自 AVDModule
(BOOL) - isSelfUser:
 判断是否是自己的用户Id 更多...
 
(BOOL) - isSelfDevice:
 判断是否是自己的设备Id 更多...
 
(AVDUserId- getOwnerId:
 获取设备Id的关联用户Id 更多...
 
(NSString *) - getOwnerName:
 获取设备Id的关联用户名称 更多...
 

类方法

(AVDChat *) + getChat:
 获取聊天功能模块对象 更多...
 

属性

id< AVDChatDelegatedelegate
 聊天回调代理 更多...
 
- 属性 继承自 AVDModule
AVDRoomroom
 房间对象指针 更多...
 
AVDUserManagerusermanager
 用户管理模块指针 更多...
 
enum AVDModuleType type
 模块类型 更多...
 

详细描述

房间中聊天模块接口.

房间聊天模块定义房间中公聊和私聊等聊天功能接口。

函数文档

◆ __attribute__()

- (( unavailable("init is not a supported initializer for this class.") __attribute__

◆ getChat:()

+ (AVDChat*) getChat: (AVDRoom *)  room

获取聊天功能模块对象

参数
[in]*room房间对象指针
返回
返回聊天模块对象。

◆ getPrivateHistoryMessage:begin:count:userId:()

- (NSMutableArray*) getPrivateHistoryMessage: (BOOL)  latest
begin: (NSInteger)  begindex
count: (NSInteger)  count
userId: (AVDUserId userId 

获取私聊历史消息记录

参数
[in]latest是否是最新记录(即反序)。
[in]begindex消息起始索引。
[in]count请求消息数量。
[in]userId聊天对方的用户Id。
返回
返回消息列表。
注解
返回数组中存放着AVDMessage对象

◆ getPublicHistoryMessage:begin:count:()

- (NSMutableArray*) getPublicHistoryMessage: (BOOL)  latest
begin: (NSInteger)  begindex
count: (NSInteger)  count 

获取公聊历史消息记录

参数
[in]latest是否是最新记录(即反序)。
[in]begindex消息起始索引。
[in]count请求消息数量。
返回
返回消息列表。
注解
返回数组中存放着AVDMessage对象

◆ sendPrivateMessage:toUser:()

- (AVDResult) sendPrivateMessage: (NSString *)  message
toUser: (AVDUserId toId 

发送私聊消息

参数
[in]*message消息内容。
[in]toId私聊消息目的用户Id。
返回
返回错误代码。

◆ sendPublicMessage:()

- (AVDResult) sendPublicMessage: (NSString *)  message

发送公聊消息

参数
[in]*message消息内容。
返回
返回错误代码。

属性说明

◆ delegate

- (id<AVDChatDelegate>) delegate
readwritenonatomicweak

聊天回调代理


该类的文档由以下文件生成: