hyphenate_SDK3.0  3.6.1
hyphenatejavaIMSDK
Public 成员函数 | Public 属性 | 所有成员列表
com.hyphenate.EMMultiDeviceListener接口 参考

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
 

详细描述

Multi-device listener, listener current user action callback on other devices.

成员函数说明

◆ onContactEvent()

void com.hyphenate.EMMultiDeviceListener.onContactEvent ( int  event,
String  target,
String  ext 
)

Multi device onContact event

参数
event
target
ext

◆ onGroupEvent()

void com.hyphenate.EMMultiDeviceListener.onGroupEvent ( int  event,
String  target,
List< String >  usernames 
)

Multi device onGroup event

参数
event
target
usernames

类成员变量说明

◆ CONTACT_ACCEPT

int com.hyphenate.EMMultiDeviceListener.CONTACT_ACCEPT = 3

好友请求已经在其他机子上被同意

◆ CONTACT_ALLOW

int com.hyphenate.EMMultiDeviceListener.CONTACT_ALLOW = 6

好友在其他设备被移出黑名单

◆ CONTACT_BAN

int com.hyphenate.EMMultiDeviceListener.CONTACT_BAN = 5

当前用户在其他设备加某人进入黑名单

◆ CONTACT_DECLINE

int com.hyphenate.EMMultiDeviceListener.CONTACT_DECLINE = 4

好友请求已经在其他机子上被拒绝

◆ CONTACT_REMOVE

int com.hyphenate.EMMultiDeviceListener.CONTACT_REMOVE = 2

在其他设备上发起好友请求

~\english current user invited contact to be friend on other device 好友已经在其他机子上被移除

◆ GROUP_ADD_ADMIN

int com.hyphenate.EMMultiDeviceListener.GROUP_ADD_ADMIN = 26

添加管理员

◆ GROUP_ADD_MUTE

int com.hyphenate.EMMultiDeviceListener.GROUP_ADD_MUTE = 28

禁言用户

◆ GROUP_ALLOW

int com.hyphenate.EMMultiDeviceListener.GROUP_ALLOW = 22

移除群组黑名单

◆ GROUP_APPLY

int com.hyphenate.EMMultiDeviceListener.GROUP_APPLY = 14

发起群组申请

◆ GROUP_APPLY_ACCEPT

int com.hyphenate.EMMultiDeviceListener.GROUP_APPLY_ACCEPT = 15

同意群组申请

◆ GROUP_APPLY_DECLINE

int com.hyphenate.EMMultiDeviceListener.GROUP_APPLY_DECLINE = 16

拒绝群组申请

◆ GROUP_ASSIGN_OWNER

int com.hyphenate.EMMultiDeviceListener.GROUP_ASSIGN_OWNER = 25

转移群主

◆ GROUP_BAN

int com.hyphenate.EMMultiDeviceListener.GROUP_BAN = 21

加入群组黑名单

◆ GROUP_BLOCK

int com.hyphenate.EMMultiDeviceListener.GROUP_BLOCK = 23

屏蔽群组

◆ GROUP_CREATE

int com.hyphenate.EMMultiDeviceListener.GROUP_CREATE = 10

创建了群组

◆ GROUP_DESTROY

int com.hyphenate.EMMultiDeviceListener.GROUP_DESTROY = 11

销毁了群组

◆ GROUP_INVITE

int com.hyphenate.EMMultiDeviceListener.GROUP_INVITE = 17

邀请群成员

◆ GROUP_INVITE_ACCEPT

int com.hyphenate.EMMultiDeviceListener.GROUP_INVITE_ACCEPT = 18

同意群组邀请

◆ GROUP_INVITE_DECLINE

int com.hyphenate.EMMultiDeviceListener.GROUP_INVITE_DECLINE = 19

拒绝群组邀请

◆ GROUP_JOIN

int com.hyphenate.EMMultiDeviceListener.GROUP_JOIN = 12

已经加入群组

◆ GROUP_KICK

int com.hyphenate.EMMultiDeviceListener.GROUP_KICK = 20

将某人踢出群

◆ GROUP_LEAVE

int com.hyphenate.EMMultiDeviceListener.GROUP_LEAVE = 13

已经离开群组

◆ GROUP_REMOVE_ADMIN

int com.hyphenate.EMMultiDeviceListener.GROUP_REMOVE_ADMIN = 27

移除管理员

◆ GROUP_REMOVE_MUTE

int com.hyphenate.EMMultiDeviceListener.GROUP_REMOVE_MUTE = 29

移除禁言

◆ GROUP_UNBLOCK

int com.hyphenate.EMMultiDeviceListener.GROUP_UNBLOCK = 24

取消群组屏蔽


该接口的文档由以下文件生成: