RCWatchKitStatusDelegate Protocol Reference

Conforms to NSObject
Declared in RCWatchKitStatusDelegate.h

Overview

用于Apple Watch的IMLib事务监听器

此协议定义了IMLib在状态变化和各种活动时的回调,主要用于Apple Watch。


连接状态发生变化的回调

– notifyWatchKitConnectionStatusChanged:

连接状态发生变化的回调

- (void)notifyWatchKitConnectionStatusChanged:(RCConnectionStatus)status

Parameters

status

SDK与融云服务器的连接状态

Discussion

连接状态发生变化的回调

Declared In

RCWatchKitStatusDelegate.h


收到消息的回调

– notifyWatchKitReceivedMessage:

收到消息的回调

- (void)notifyWatchKitReceivedMessage:(RCMessage *)receivedMsg

Parameters

receivedMsg

收到的消息实体

Discussion

收到消息的回调

Declared In

RCWatchKitStatusDelegate.h


向外发送消息的回调

– notifyWatchKitSendMessage:

向外发送消息的回调

- (void)notifyWatchKitSendMessage:(RCMessage *)message

Parameters

message

待发送消息

Discussion

向外发送消息的回调

Declared In

RCWatchKitStatusDelegate.h


发送消息完成的回调

– notifyWatchKitSendMessageCompletion:status:

发送消息完成的回调

- (void)notifyWatchKitSendMessageCompletion:(long)messageId status:(RCErrorCode)status

Parameters

messageId

消息ID

status

完成的状态吗。0表示成功,非0表示失败

Discussion

发送消息完成的回调

Declared In

RCWatchKitStatusDelegate.h


上传图片进度更新的回调

– notifyWatchKitUploadFileProgress:messageId:

上传图片进度更新的回调

- (void)notifyWatchKitUploadFileProgress:(int)progress messageId:(long)messageId

Parameters

progress

进度

messageId

消息ID

Discussion

上传图片进度更新的回调

Declared In

RCWatchKitStatusDelegate.h


删除会话的回调

– notifyWatchKitClearConversations:

删除会话的回调

- (void)notifyWatchKitClearConversations:(NSArray *)conversationTypeList

Parameters

conversationTypeList

会话类型的数组

Discussion

删除会话的回调

Declared In

RCWatchKitStatusDelegate.h


删除消息的回调

– notifyWatchKitClearMessages:targetId:

删除消息的回调

- (void)notifyWatchKitClearMessages:(RCConversationType)conversationType targetId:(NSString *)targetId

Parameters

conversationType

会话类型

targetId

目标会话ID

Discussion

删除消息的回调

Declared In

RCWatchKitStatusDelegate.h


删除消息的回调

– notifyWatchKitDeleteMessages:

删除消息的回调

- (void)notifyWatchKitDeleteMessages:(NSArray *)messageIds

Parameters

messageIds

消息ID的数组

Discussion

删除消息的回调

Declared In

RCWatchKitStatusDelegate.h


清除未读消息数的回调

– notifyWatchKitClearUnReadStatus:targetId:

清除未读消息数的回调

- (void)notifyWatchKitClearUnReadStatus:(RCConversationType)conversationType targetId:(NSString *)targetId

Parameters

conversationType

会话类型

targetId

目标会话ID

Discussion

清除未读消息数的回调

Declared In

RCWatchKitStatusDelegate.h


创建讨论组的回调

– notifyWatchKitCreateDiscussion:userIdList:

创建讨论组的回调

- (void)notifyWatchKitCreateDiscussion:(NSString *)name userIdList:(NSArray *)userIdList

Parameters

name

讨论组名称

userIdList

成员的用户ID列表

Discussion

创建讨论组的回调

Declared In

RCWatchKitStatusDelegate.h


创建讨论组成功的回调

– notifyWatchKitCreateDiscussionSuccess:

创建讨论组成功的回调

- (void)notifyWatchKitCreateDiscussionSuccess:(NSString *)discussionId

Parameters

discussionId

讨论组的ID

Discussion

创建讨论组成功的回调

Declared In

RCWatchKitStatusDelegate.h


创建讨论组失败

– notifyWatchKitCreateDiscussionError:

创建讨论组失败

- (void)notifyWatchKitCreateDiscussionError:(RCErrorCode)errorCode

Parameters

errorCode

创建失败的错误码

Discussion

创建讨论组失败

Declared In

RCWatchKitStatusDelegate.h


讨论组加人的回调

– notifyWatchKitAddMemberToDiscussion:userIdList:

讨论组加人的回调

- (void)notifyWatchKitAddMemberToDiscussion:(NSString *)discussionId userIdList:(NSArray *)userIdList

Parameters

discussionId

讨论组的ID

userIdList

添加成员的用户ID列表

Discussion

讨论组加人的回调

加人的结果可以通过notifyWatchKitDiscussionOperationCompletion获得。

Declared In

RCWatchKitStatusDelegate.h


讨论组踢人的回调

– notifyWatchKitRemoveMemberFromDiscussion:userId:

讨论组踢人的回调

- (void)notifyWatchKitRemoveMemberFromDiscussion:(NSString *)discussionId userId:(NSString *)userId

Parameters

discussionId

讨论组ID

userId

用户ID

Discussion

讨论组踢人的回调

踢人的结果可以通过notifyWatchKitDiscussionOperationCompletion获得。

Declared In

RCWatchKitStatusDelegate.h


退出讨论组的回调

– notifyWatchKitQuitDiscussion:

退出讨论组的回调

- (void)notifyWatchKitQuitDiscussion:(NSString *)discussionId

Parameters

discussionId

讨论组ID

Discussion

退出讨论组的回调

创建的结果可以通过notifyWatchKitDiscussionOperationCompletion获得。

Declared In

RCWatchKitStatusDelegate.h


讨论组操作的回调。tag:100-邀请;101-踢人;102-退出。status:0成功,非0失败

– notifyWatchKitDiscussionOperationCompletion:status:

讨论组操作的回调。tag:100-邀请;101-踢人;102-退出。status:0成功,非0失败

- (void)notifyWatchKitDiscussionOperationCompletion:(int)tag status:(RCErrorCode)status

Parameters

tag

讨论组的操作类型。100为加人,101为踢人,102为退出

status

操作的结果。0表示成功,非0表示失败

Discussion

讨论组操作的回调。tag:100-邀请;101-踢人;102-退出。status:0成功,非0失败

Declared In

RCWatchKitStatusDelegate.h