hyphenate_SDK3.0
3.8.6.1
hyphenate java IM SDK
|
Public 成员函数 | |
void | onContactEvent (int event, String target, String ext) |
void | onGroupEvent (int event, String target, List< String > usernames) |
Public 属性 | |
int | CONTACT_REMOVE = 2 |
int | CONTACT_ACCEPT = 3 |
int | CONTACT_DECLINE = 4 |
int | CONTACT_BAN = 5 |
int | CONTACT_ALLOW = 6 |
int | GROUP_CREATE = 10 |
int | GROUP_DESTROY = 11 |
int | GROUP_JOIN = 12 |
int | GROUP_LEAVE = 13 |
int | GROUP_APPLY = 14 |
int | GROUP_APPLY_ACCEPT = 15 |
int | GROUP_APPLY_DECLINE = 16 |
int | GROUP_INVITE = 17 |
int | GROUP_INVITE_ACCEPT = 18 |
int | GROUP_INVITE_DECLINE = 19 |
int | GROUP_KICK = 20 |
int | GROUP_BAN = 21 |
int | GROUP_ALLOW = 22 |
int | GROUP_BLOCK = 23 |
int | GROUP_UNBLOCK = 24 |
int | GROUP_ASSIGN_OWNER = 25 |
int | GROUP_ADD_ADMIN = 26 |
int | GROUP_REMOVE_ADMIN = 27 |
int | GROUP_ADD_MUTE = 28 |
int | GROUP_REMOVE_MUTE = 29 |
Created by linan on 17/4/17.
多端多设备事件监听 监听其他设备上当前用户的事件回调,包括联系人变化和群组变化
注册监听: EMClient.getInstance().addMultiDeviceListener(mMultiDeviceListener); 解注册监听: EMClient.getInstance().removeMultiDeviceListener(mMultiDeviceListener);
void com.hyphenate.EMMultiDeviceListener.onContactEvent | ( | int | event, |
String | target, | ||
String | ext | ||
) |
多端多设备联系人事件
event | 事件,详见上方的常量 |
target | 联系人id |
ext | 扩展信息 |
void com.hyphenate.EMMultiDeviceListener.onGroupEvent | ( | int | event, |
String | target, | ||
List< String > | usernames | ||
) |
多端多设备群组事件
event | 事件,详见上方常量 |
target | 群组id |
usernames | 操作目标id集合 |
int com.hyphenate.EMMultiDeviceListener.CONTACT_ACCEPT = 3 |
好友请求已经在其他设备上被同意
int com.hyphenate.EMMultiDeviceListener.CONTACT_ALLOW = 6 |
好友在其他设备被移出黑名单
int com.hyphenate.EMMultiDeviceListener.CONTACT_BAN = 5 |
当前用户在其他设备加某人进入黑名单
int com.hyphenate.EMMultiDeviceListener.CONTACT_DECLINE = 4 |
好友请求已经在其他设备上被拒绝
int com.hyphenate.EMMultiDeviceListener.CONTACT_REMOVE = 2 |
好友已经在其他设备上被移除
int com.hyphenate.EMMultiDeviceListener.GROUP_ADD_ADMIN = 26 |
当前用户在其他设备添加管理员
int com.hyphenate.EMMultiDeviceListener.GROUP_ADD_MUTE = 28 |
当前用户在其他设备禁言用户
int com.hyphenate.EMMultiDeviceListener.GROUP_ALLOW = 22 |
当前用户在其他设备将成员移除群组黑名单
int com.hyphenate.EMMultiDeviceListener.GROUP_APPLY = 14 |
当前用户在其他设备发起了群组申请
int com.hyphenate.EMMultiDeviceListener.GROUP_APPLY_ACCEPT = 15 |
当前用户在其他设备同意了群组申请
int com.hyphenate.EMMultiDeviceListener.GROUP_APPLY_DECLINE = 16 |
当前用户在其他设备拒绝了群组申请
int com.hyphenate.EMMultiDeviceListener.GROUP_ASSIGN_OWNER = 25 |
当前用户在其他设备转移群主
int com.hyphenate.EMMultiDeviceListener.GROUP_BAN = 21 |
当前用户在其他设备将成员加入群组黑名单
int com.hyphenate.EMMultiDeviceListener.GROUP_BLOCK = 23 |
当前用户在其他设备屏蔽群组
int com.hyphenate.EMMultiDeviceListener.GROUP_CREATE = 10 |
当前用户在其他设备创建了群组
int com.hyphenate.EMMultiDeviceListener.GROUP_DESTROY = 11 |
当前用户在其他设备销毁了群组
int com.hyphenate.EMMultiDeviceListener.GROUP_INVITE = 17 |
当前用户在其他设备邀请了群成员
int com.hyphenate.EMMultiDeviceListener.GROUP_INVITE_ACCEPT = 18 |
当前用户在其他设备同意了群组邀请
int com.hyphenate.EMMultiDeviceListener.GROUP_INVITE_DECLINE = 19 |
当前用户在其他设备拒绝了群组邀请
int com.hyphenate.EMMultiDeviceListener.GROUP_JOIN = 12 |
当前用户在其他设备已经加入群组
int com.hyphenate.EMMultiDeviceListener.GROUP_KICK = 20 |
当前用户在其他设备将某人踢出群
int com.hyphenate.EMMultiDeviceListener.GROUP_LEAVE = 13 |
当前用户在其他设备已经离开群组
int com.hyphenate.EMMultiDeviceListener.GROUP_REMOVE_ADMIN = 27 |
当前用户在其他设备移除管理员
int com.hyphenate.EMMultiDeviceListener.GROUP_REMOVE_MUTE = 29 |
当前用户在其他设备移除禁言
int com.hyphenate.EMMultiDeviceListener.GROUP_UNBLOCK = 24 |
当前用户在其他设备取消群组屏蔽