融云
2015-09-09 11:48:43 0 举报
AI智能生成
融云是一家专注于全球互联网通信云服务的公司,提供PaaS、SaaS、IM、企业直播等服务。它致力于构建一个安全可靠的全球互联网通信云平台,让开发者和企业能够在任何设备和任何场景下快速、灵活地接入和使用通信能力。融云拥有全球233个加速节点,可以有效解决跨国、跨网络通信问题,保障全球用户100%可达。此外,融云还提供了丰富的API和SDK,支持多种编程语言和平台,方便开发者快速集成和使用。总之,融云是一个值得信赖的全球互联网通信云服务提供商。
作者其他创作
大纲/内容
IMKit体系架构
APP
Controller
RCConversationListViewController
RCConversationViewController
View
RCConversationCell
conversationListView
RCMessageCell
conversationView
RCTextMessageCell
Model
RCConversationModel
RCMessageModel
登录
请求应用服务器获取Token
应用服务器请求融云获取
拿到Token登录
IMKit
IMLib
Protocol
核心协议栈
融云自定义的私有二进制协议
提供基本通信能力库
Conversation
Message
命名
IOS
RCIMClient(核心类)
init
connect
setdevicetoken
sendMessage
sendImageMessage
RCConversation(会话实体类)
包含多个消息
唯一标识
ConversationType
PRIVATE(单聊)
TargetId
userid
GROUP(群组)
TargetId
groupid
DISCUSSION(讨论组)
TargetId
discussionid
CHATROOM(聊天室)
TargetId
customerServiceId
SYSTEM(系统会话)
TargetId
系统账户Id(没理解)
APP_PUBLIC_SERVICE(应用公众服务)
TargetId
应用公众服务的Id
PUBLIC_SERVICE(公众服务)
TargetId
公众服务的Id
TargetId
RCMessage
objectName
RC:TxtMsg
RC:ImgMsg
RC:VcMsg
content
消息内容的json数组
RCMessageContent
消息的基类
RCTextMessage
{"content":"Hello","extra":"World"}
RCVoiceMessage
{"content":"语音转码为AMR后base64的结果","duration":"7","extra":"hijkl"}
RCImageMessage
{"content":"缩略图base64后的结果","imageUri":"http://","extra":"sdf"}
RCRichContentMessage
{"title":"标题","content":"文字内容","imageUri":"图片地址","url":"跳转地址","extra":""}
RCLocationMessage
{"content":"地图缩略图base64结果","latitude":"纬度","longitude":"经度","poi":"位置兴趣点名称(没明白)","extra":""}
RCInformationNotificationMessage
{"message":"","extra":""}
RCContactNotificationMessage
{"operation":"联系人操作的指令","sourceUserId":"发出通知的用户Id","targetUserId":"接收通知的用户Id","message":"通知附带的消息内容","extra":""}
operation
Request
AcceptResponse
RejectResponse
RCProfileNotificationMessage
{"operation":"资料通知操作","data":{操作数据},"extra":""}
RCCommandNotificationMessage
{"name":"命令名称","data":{命令内容}}
自定义消息
需实现CustomMessageContent继承RCMessageContent
自定义消息完成后,需要注册到系统消息类型中
,init之后,connect之前
Android
RongIMClient
封装各种界面对象
体系架构
IMClient
Conversation
Group
Discussion
Message
MessageContent
TextMessage
VoiceMessage
ImageMessage
LocationMessage
RichContentMessage
InformationNotificationMessage
ContactNotificationMessage
ProfileNotificationMessage
CommandNotificationMessage
快速集成
初始化SDK
获取通知
setDeviceToken
0 条评论
下一页