hyphenate_SDK3.0  3.6.0
hyphenatejavaIMSDK
Public Member Functions | List of all members
com.hyphenate.EMChatRoomChangeListener Interface Reference

Public Member Functions

void onChatRoomDestroyed (final String roomId, final String roomName)
 
void onMemberJoined (final String roomId, final String participant)
 
void onMemberExited (final String roomId, final String roomName, final String participant)
 
void onRemovedFromChatRoom (final int reason, final String roomId, final String roomName, final String participant)
 
void onMuteListAdded (final String chatRoomId, final List< String > mutes, final long expireTime)
 
void onMuteListRemoved (final String chatRoomId, final List< String > mutes)
 
void onAdminAdded (final String chatRoomId, final String admin)
 
void onAdminRemoved (final String chatRoomId, final String admin)
 
void onOwnerChanged (final String chatRoomId, final String newOwner, final String oldOwner)
 
void onAnnouncementChanged (String chatRoomId, String announcement)
 

Member Function Documentation

void com.hyphenate.EMChatRoomChangeListener.onAdminAdded ( final String  chatRoomId,
final String  admin 
)

Callback when a member has been changed to admin

Parameters
chatRoomIdchatroom id
adminmember who has been changed to admin
void com.hyphenate.EMChatRoomChangeListener.onAdminRemoved ( final String  chatRoomId,
final String  admin 
)

Callback when member is removed from admin

Parameters
chatRoomIdchatroom id
adminthe member whose admin permission is removed
void com.hyphenate.EMChatRoomChangeListener.onAnnouncementChanged ( String  chatRoomId,
String  announcement 
)

callback when the announcement changed

Parameters
chatRoomIdchatroom id
announcementchanged announcement
void com.hyphenate.EMChatRoomChangeListener.onChatRoomDestroyed ( final String  roomId,
final String  roomName 
)

callback when chat room is destroyed

Parameters
roomIdchatroom id
roomNamechatroom subject
void com.hyphenate.EMChatRoomChangeListener.onMemberExited ( final String  roomId,
final String  roomName,
final String  participant 
)

Callback when a member exited the chatroom

Parameters
roomIdchatroom id
roomNamechatroom's subject
participantthe member who exited the chatroom
void com.hyphenate.EMChatRoomChangeListener.onMemberJoined ( final String  roomId,
final String  participant 
)

Callback when a member join the chatroom.

Parameters
roomIdchatroom id
participantnew member's username
void com.hyphenate.EMChatRoomChangeListener.onMuteListAdded ( final String  chatRoomId,
final List< String >  mutes,
final long  expireTime 
)

Callback when chat room member(s) is muted (added to mute list), and is not allowed to post message temporarily based on muted time duration

Parameters
chatRoomIdchatroom id
mutesmuted username
expireTimemute operation expired time
void com.hyphenate.EMChatRoomChangeListener.onMuteListRemoved ( final String  chatRoomId,
final List< String >  mutes 
)

Callback when chat room member(s) is unmuted (removed from mute list), and allow to post message now

Parameters
chatRoomIdchatroom id
mutesmember(s) muted was removed from the mute list
void com.hyphenate.EMChatRoomChangeListener.onOwnerChanged ( final String  chatRoomId,
final String  newOwner,
final String  oldOwner 
)

Callback when chat room ownership has been transferred

Parameters
chatRoomIdchatroom id
newOwnernew owner
oldOwnerprevious owner
void com.hyphenate.EMChatRoomChangeListener.onRemovedFromChatRoom ( final int  reason,
final String  roomId,
final String  roomName,
final String  participant 
)

Callback when a member is dismissed from a chat room

Parameters
reasonRemove by chatroom owner or server for network. See: com.hyphenate.chat.adapter.EMAChatRoomManagerListener#BE_KICKED com.hyphenate.chat.adapter.EMAChatRoomManagerListener#BE_KICKED_FOR_OFFLINE
roomIdchatroom id
roomNamethe chatroom's subject
participantthe member is dismissed from a chat room

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