hyphenate_SDK3.0  3.8.6.1
hyphenate java IM SDK
Public Member Functions | Public Attributes | List of all members
com.hyphenate.EMMultiDeviceListener Interface Reference

Public Member Functions

void onContactEvent (int event, String target, String ext)
 
void onGroupEvent (int event, String target, List< String > usernames)
 

Public Attributes

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
 

Detailed Description

Created by linan on 17/4/17.

Multi-device listener Listen current user action callback on other devices, including contact changes and group changes

    Register listener:
    EMClient.getInstance().addMultiDeviceListener(mMultiDeviceListener);

    Unregister listener:
    EMClient.getInstance().removeMultiDeviceListener(mMultiDeviceListener);

Member Function Documentation

◆ onContactEvent()

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

Multi device onContact event

Parameters
eventEvent, see the constants above
targetContact id
extExtended information

◆ onGroupEvent()

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

Multi device onGroup event

Parameters
eventEvent, see the constants above
targetGroup id
usernamesOperation target ids list

Member Data Documentation

◆ CONTACT_ACCEPT

int com.hyphenate.EMMultiDeviceListener.CONTACT_ACCEPT = 3

Current user accepted contact invitation on other device

◆ CONTACT_ALLOW

int com.hyphenate.EMMultiDeviceListener.CONTACT_ALLOW = 6

Current user removed someone from blacklist on other device

◆ CONTACT_BAN

int com.hyphenate.EMMultiDeviceListener.CONTACT_BAN = 5

Current user added someone to blacklist on other device

◆ CONTACT_DECLINE

int com.hyphenate.EMMultiDeviceListener.CONTACT_DECLINE = 4

Current user refused contact invitation on other device

◆ CONTACT_REMOVE

int com.hyphenate.EMMultiDeviceListener.CONTACT_REMOVE = 2

Current user removed contact on other device

◆ GROUP_ADD_ADMIN

int com.hyphenate.EMMultiDeviceListener.GROUP_ADD_ADMIN = 26

Current user added administrator on other device

◆ GROUP_ADD_MUTE

int com.hyphenate.EMMultiDeviceListener.GROUP_ADD_MUTE = 28

Current user added someone into mute list on other device

◆ GROUP_ALLOW

int com.hyphenate.EMMultiDeviceListener.GROUP_ALLOW = 22

Current user removed someone from blacklist on other device

◆ GROUP_APPLY

int com.hyphenate.EMMultiDeviceListener.GROUP_APPLY = 14

Current user applied to join the group on other device

◆ GROUP_APPLY_ACCEPT

int com.hyphenate.EMMultiDeviceListener.GROUP_APPLY_ACCEPT = 15

Current user accepted group application on other device

◆ GROUP_APPLY_DECLINE

int com.hyphenate.EMMultiDeviceListener.GROUP_APPLY_DECLINE = 16

Current user refused group application on other device

◆ GROUP_ASSIGN_OWNER

int com.hyphenate.EMMultiDeviceListener.GROUP_ASSIGN_OWNER = 25

Current user assigned group owner to someone on other device

◆ GROUP_BAN

int com.hyphenate.EMMultiDeviceListener.GROUP_BAN = 21

Current user added someone into group blacklist on other device

◆ GROUP_BLOCK

int com.hyphenate.EMMultiDeviceListener.GROUP_BLOCK = 23

Current user blocked the group message on other device

◆ GROUP_CREATE

int com.hyphenate.EMMultiDeviceListener.GROUP_CREATE = 10

Current user created group on other device

◆ GROUP_DESTROY

int com.hyphenate.EMMultiDeviceListener.GROUP_DESTROY = 11

Current user destroyed group on other device

◆ GROUP_INVITE

int com.hyphenate.EMMultiDeviceListener.GROUP_INVITE = 17

Current user invited some one to join the group on other device

◆ GROUP_INVITE_ACCEPT

int com.hyphenate.EMMultiDeviceListener.GROUP_INVITE_ACCEPT = 18

Current user accepted the group invitation on other device

◆ GROUP_INVITE_DECLINE

int com.hyphenate.EMMultiDeviceListener.GROUP_INVITE_DECLINE = 19

Current user declined the group invitation on other device

◆ GROUP_JOIN

int com.hyphenate.EMMultiDeviceListener.GROUP_JOIN = 12

Current user joined group on other device

◆ GROUP_KICK

int com.hyphenate.EMMultiDeviceListener.GROUP_KICK = 20

Current user kicked someone from group on other device

◆ GROUP_LEAVE

int com.hyphenate.EMMultiDeviceListener.GROUP_LEAVE = 13

Current user left the group on other device

◆ GROUP_REMOVE_ADMIN

int com.hyphenate.EMMultiDeviceListener.GROUP_REMOVE_ADMIN = 27

Current user removed administrator on other device

◆ GROUP_REMOVE_MUTE

int com.hyphenate.EMMultiDeviceListener.GROUP_REMOVE_MUTE = 29

Current user removed someone from mute list

◆ GROUP_UNBLOCK

int com.hyphenate.EMMultiDeviceListener.GROUP_UNBLOCK = 24

Current user unblock the group message on other device


The documentation for this interface was generated from the following file: