9#import <Foundation/Foundation.h>
11NS_ASSUME_NONNULL_BEGIN
29typedef void(^
NIMUserInfoBlock)(NSArray<NIMUser *> * __nullable users,NSError * __nullable error);
79@protocol NIMUserManagerDelegate <NSObject>
88- (void)onFriendChanged:(
NIMUser *)user;
93- (void)onBlackListChanged;
98- (void)onMuteListChanged;
106- (void)onUserInfoChanged:(
NIMUser *)user;
113@protocol NIMUserManager <NSObject>
131- (void)deleteFriend:(NSString *)userId
142- (void)deleteFriend:(NSString *)userId
143 removeAlias:(BOOL)remove
151- (nullable NSArray<
NIMUser *> *)myFriends;
161- (BOOL)isMyFriend:(NSString *)userId;
170- (void)addToBlackList:(NSString *)userId
179- (void)removeFromBlackBlackList:(NSString *)userId
189- (BOOL)isUserInBlackList:(NSString *)userId;
196- (nullable NSArray<
NIMUser *> *)myBlackList;
206- (void)updateNotifyState:(BOOL)notify
207 forUser:(NSString *)userId
218- (BOOL)notifyForNewMsg:(NSString *)userId;
225- (nullable NSArray<
NIMUser *> *)myMuteUserList;
238- (void)fetchUserInfos:(NSArray<NSString *> *)users
255- (nullable
NIMUser *)userInfo:(NSString *)userId;
266- (void)updateUser:(
NIMUser *)user
279- (void)updateMyUserInfo:(NSDictionary<NSNumber *,
id> *)values
297- (void)addDelegate:(
id<NIMUserManagerDelegate>)delegate;
304- (void)removeDelegate:(
id<NIMUserManagerDelegate>)delegate;
NIMUserInfoUpdateTag
Definition: NIMUserManagerProtocol.h:36
@ NIMUserInfoUpdateTagAntispamBusinessId
Definition: NIMUserManagerProtocol.h:73
@ NIMUserInfoUpdateTagEmail
Definition: NIMUserManagerProtocol.h:56
@ NIMUserInfoUpdateTagNick
Definition: NIMUserManagerProtocol.h:40
@ NIMUserInfoUpdateTagBirth
Definition: NIMUserManagerProtocol.h:60
@ NIMUserInfoUpdateTagMobile
Definition: NIMUserManagerProtocol.h:64
@ NIMUserInfoUpdateTagSign
Definition: NIMUserManagerProtocol.h:48
@ NIMUserInfoUpdateTagExt
Definition: NIMUserManagerProtocol.h:68
@ NIMUserInfoUpdateTagAvatar
Definition: NIMUserManagerProtocol.h:44
@ NIMUserInfoUpdateTagGender
Definition: NIMUserManagerProtocol.h:52
void(^ NIMUserBlock)(NSError *__nullable error)
Definition: NIMUserManagerProtocol.h:22
void(^ NIMUserInfoBlock)(NSArray< NIMUser * > *__nullable users, NSError *__nullable error)
Definition: NIMUserManagerProtocol.h:29
Definition: NIMUser.h:177
Definition: NIMUserSearchOption.h:44