HyphenateChatSDK 4.11.0
Instance Methods | List of all members
<EMChatroomManagerDelegate> Protocol Reference

#import <EMChatroomManagerDelegate.h>

Inheritance diagram for <EMChatroomManagerDelegate>:

Instance Methods

(void) - userDidJoinChatroom:user:ext:
 
(void) - userDidLeaveChatroom:user:
 
(void) - didDismissFromChatroom:reason:
 
(void) - chatroomSpecificationDidUpdate:
 
(void) - chatroomMuteListDidUpdate:addedMutedMembers:
 
(void) - chatroomMuteListDidUpdate:removedMutedMembers:
 
(void) - chatroomWhiteListDidUpdate:addedWhiteListMembers:
 
(void) - chatroomWhiteListDidUpdate:removedWhiteListMembers:
 
(void) - chatroomAllMemberMuteChanged:isAllMemberMuted:
 
(void) - chatroomAdminListDidUpdate:addedAdmin:
 
(void) - chatroomAdminListDidUpdate:removedAdmin:
 
(void) - chatroomOwnerDidUpdate:newOwner:oldOwner:
 
(void) - chatroomAnnouncementDidUpdate:announcement:
 
(void) - chatroomAttributesDidUpdated:attributeMap:from:
 
(void) - chatroomAttributesDidRemoved:attributes:from:
 
(void) - userDidJoinChatroom:user:
 
(void) - chatroomMuteListDidUpdate:addedMutedMembers:muteExpire:
 

Detailed Description

The callbacks of chatroom.

Method Documentation

◆ chatroomAdminListDidUpdate:addedAdmin:

- (void) chatroomAdminListDidUpdate: (EMChatroom *)  aChatroom
addedAdmin: (NSString *)  aAdmin 
optional

A user is added to the admin list.

Parameters
aChatroomThe Chatroom
aAdminThe user who is added to the admin list.

◆ chatroomAdminListDidUpdate:removedAdmin:

- (void) chatroomAdminListDidUpdate: (EMChatroom *)  aChatroom
removedAdmin: (NSString *)  aAdmin 
optional

A user is removed from the admin list.

Parameters
aChatroomThe Chatroom.
aAdminThe user who is removed from adminList.

◆ chatroomAllMemberMuteChanged:isAllMemberMuted:

- (void) chatroomAllMemberMuteChanged: (EMChatroom *)  aChatroom
isAllMemberMuted: (BOOL)  aMuted 
optional

Whether group members are all muted.

Parameters
aChatroomThe Chatroom.
aMutedWhether all members are muted.

◆ chatroomAnnouncementDidUpdate:announcement:

- (void) chatroomAnnouncementDidUpdate: (EMChatroom *)  aChatroom
announcement: (NSString *_Nullable)  aAnnouncement 
optional

The announcement is updated.

Parameters
aChatroomThe Chatroom
aAnnouncementThe Announcement content.

◆ chatroomAttributesDidRemoved:attributes:from:

- (void) chatroomAttributesDidRemoved: (NSString *_Nonnull)  roomId
attributes: (NSArray< __kindof NSString * > *_Nonnull)  attributes
from: (NSString *_Nonnull)  fromId 
optional

The announcement is updated.

Parameters
roomidThe Chatroom's id
attributeMapThe propertyMap of chatroom
fromIdoperator's id

◆ chatroomAttributesDidUpdated:attributeMap:from:

- (void) chatroomAttributesDidUpdated: (NSString *_Nonnull)  roomId
attributeMap: (NSDictionary< NSString *, NSString * > *_Nonnull)  attributeMap
from: (NSString *_Nonnull)  fromId 
optional

The announcement is updated.

Parameters
roomidThe Chatroom's id
attributeMapThe propertyMap of chatroom
fromIdoperator's id

◆ chatroomMuteListDidUpdate:addedMutedMembers:

- (void) chatroomMuteListDidUpdate: (EMChatroom *)  aChatroom
addedMutedMembers: (NSDictionary< NSString *, NSNumber * > *)  aMutes 
optional

Occurs when one or more members are added to the mute list of the chat room.

Parameters
aChatroomThe chat room.
aMutesThe muted chat room members. The parameter value is represented as key-value pairs, where the key is the user ID of the muted user and the value is the mute expiration timestamp in millisecond.Value == -1 means muted forever.

◆ chatroomMuteListDidUpdate:addedMutedMembers:muteExpire:

- (void) chatroomMuteListDidUpdate: (EMChatroom *)  aChatroom
addedMutedMembers: (NSArray< NSString * > *)  aMutes
muteExpire: ("Use -chatroomMuteListDidUpdate:addedMutedMembers: instead")  __deprecated_msg 
optional

Users are added to the mute list.

Parameters
aChatroomThe Chatroom.
aMutesThe users who are muted.
aMuteExpireThe mute expire duration, not available at this time.

◆ chatroomMuteListDidUpdate:removedMutedMembers:

- (void) chatroomMuteListDidUpdate: (EMChatroom *)  aChatroom
removedMutedMembers: (NSArray< NSString * > *)  aMutes 
optional

Users are removed from the mute list.

Parameters
aChatroomThe Chatroom.
aMutedMembersThe users who are removed from MutedList.

◆ chatroomOwnerDidUpdate:newOwner:oldOwner:

- (void) chatroomOwnerDidUpdate: (EMChatroom *)  aChatroom
newOwner: (NSString *)  aNewOwner
oldOwner: (NSString *)  aOldOwner 
optional

The owner is updated.

Parameters
aChatroomThe Chatroom
aNewOwnerThe New Owner
aOldOwnerThe Old Owner

◆ chatroomSpecificationDidUpdate:

- (void) chatroomSpecificationDidUpdate: (EMChatroom *)  aChatroom
optional

Occurs when the chatroom specification update,Need to call for a chat room details API (IEMChatroomManager. H: getChatroomSpecificationFromServerWithId) to get the latest information chat room

Parameters
aChatroomThe chatroom.

◆ chatroomWhiteListDidUpdate:addedWhiteListMembers:

- (void) chatroomWhiteListDidUpdate: (EMChatroom *)  aChatroom
addedWhiteListMembers: (NSArray< NSString * > *)  aMembers 
optional

Users are added to the allowlist.

Parameters
aChatroomThe Chatroom.
aMutedMembersThe users who are added to allowlist.

◆ chatroomWhiteListDidUpdate:removedWhiteListMembers:

- (void) chatroomWhiteListDidUpdate: (EMChatroom *)  aChatroom
removedWhiteListMembers: (NSArray< NSString * > *)  aMembers 
optional

Users are removed from the allowlist.

Parameters
aChatroomThe Chatroom.
aMembersThe users who are removed from the allowlist.

◆ didDismissFromChatroom:reason:

- (void) didDismissFromChatroom: (EMChatroom *)  aChatroom
reason: (EMChatroomBeKickedReason)  aReason 
optional

Occurs when a user is dismissed from a chat room.

Parameters
aChatroomThe chatroom user is dismissed from.
aReasonThe reason of the user was kicked out.

◆ userDidJoinChatroom:user:

- (void) userDidJoinChatroom: (EMChatroom *)  aChatroom
user: ("Use -userDidJoinChatroom:user:ext: instead")  __deprecated_msg 
optional

A user joined a chatroom.

Parameters
aChatroomThe chatroom user joined.
aUsernameThe user who joined chatroom.

◆ userDidJoinChatroom:user:ext:

- (void) userDidJoinChatroom: (EMChatroom *)  aChatroom
user: (NSString *)  aUsername
ext: (NSString *_Nullable)  ext 
optional

Occurs when a user joined the chat room.

Parameters
aChatroomThe chat room.
aUsernameThe user that joined the chat room.
extThe extension information.

◆ userDidLeaveChatroom:user:

- (void) userDidLeaveChatroom: (EMChatroom *)  aChatroom
user: (NSString *)  aUsername 
optional

Occurs when a user leaves a chatroom.

Parameters
aChatroomThe chatroom user left.
aUsernameThe user who leaved chatroom

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