NIMSDK-iOS
载入中...
搜索中...
未找到
NIMCustomObject类 参考

#import <NIMCustomObject.h>

类 NIMCustomObject 继承关系图:
<NIMMessageObject>

类方法

(void) + registerCustomDecoder:
 

属性

id< NIMCustomAttachmentattachment
 
- 属性 继承自 <NIMMessageObject>
NIMMessagemessage
 
NIMQChatMessageqchatMessage
 

额外继承的成员函数

- 构造函数 继承自 <NIMMessageObject>
(NIMMessageType- type
 

详细描述

用户自定义消息对象

函数文档

◆ registerCustomDecoder:

+ (void) registerCustomDecoder: (id< NIMCustomAttachmentCoding >)  decoder

注册自定义消息解析器

参数
decoder自定义消息解析器 @disucssion 如果用户使用自定义消息类型,就需要注册自定义消息解析器,负责将透传过来的自定义消息反序列化成上层应用可识别的对象

属性说明

◆ attachment

- (id<NIMCustomAttachment>) attachment
readwritenonatomicstrong

用户自定义附件 @discussion SDK负责将attachment通过encodeAttachment接口序列化后的结果进行透传


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