QChatRoomService
interface com.qlive.chatservice.QChatRoomService
聊天室服务
Index
方法
方法
addServiceListener
- public void addServiceListener(QChatRoomServiceListener chatServiceListener)
-
添加聊天室监听
Parameters-
chatServiceListener: QChatRoomServiceListener
监听
Returns void -
removeServiceListener
- public void removeServiceListener(QChatRoomServiceListener chatServiceListener)
-
移除聊天室监听
Parameters-
chatServiceListener: QChatRoomServiceListener
监听
Returns void -
sendCustomC2CMsg
- public void sendCustomC2CMsg(boolean isCMD,String msg,String memberID,QLiveCallBack callBack)
-
发c2c消息
Parameters-
isCMD: boolean
是不是信令消息
-
msg: String
消息内容
-
memberID: String
成员im ID
-
callBack: QLiveCallBack
回调
Returns void -
sendCustomGroupMsg
- public void sendCustomGroupMsg(boolean isCMD,String msg,QLiveCallBack callBack)
-
发群消息
Parameters-
isCMD: boolean
是不是信令消息
-
msg: String
消息内容
-
callBack: QLiveCallBack
回调
Returns void -
kickUser
- public void kickUser(String msg,String memberID,QLiveCallBack callBack)
-
踢人
Parameters-
msg: String
消息内容
-
memberID: String
成员im ID
-
callBack: QLiveCallBack
回调
Returns void -
muteUser
- public void muteUser(boolean isMute,String msg,String memberID,long duration,QLiveCallBack callBack)
-
禁言
Parameters-
isMute: boolean
是否禁言
-
msg: String
消息内容
-
memberID: String
成员im ID
-
duration: long
禁言时常
-
callBack: QLiveCallBack
回调
Returns void -
getBannedMembers
- public void getBannedMembers()
-
禁言列表
Returns void
blockUser
- public void blockUser(boolean isBlock,String memberID,QLiveCallBack callBack)
-
拉黑
Parameters-
isBlock: boolean
是否拉黑
-
memberID: String
成员im ID
-
callBack: QLiveCallBack
回调
Returns void -
getBlockList
- public void getBlockList(boolean forceRefresh,QLiveCallBack callBack)
-
黑名单列表
Parameters-
forceRefresh: boolean
是否强制拉服务端数据否则缓存
-
callBack: QLiveCallBack
Returns void -
addAdmin
- public void addAdmin(String memberID,QLiveCallBack callBack)
-
添加管理员
Parameters-
memberID: String
成员im ID
-
callBack: QLiveCallBack
回调
Returns void -
removeAdmin
- public void removeAdmin(String msg,String memberID,QLiveCallBack callBack)
-
移除管理员
Parameters-
msg: String
-
memberID: String
成员im ID
-
callBack: QLiveCallBack
回调
Returns void -
文档反馈
(如有产品使用问题,请 提交工单)