HyphenateChatSDK 4.20.0
IEMUserInfoManager.h
1//
2// IEMUserInfoManager.h
3// HyphenateSDK
4//
5// Created by lixiaoming on 2021/3/17.
6// Copyright © 2021 easemob.com. All rights reserved.
7//
8
23#import <Foundation/Foundation.h>
24#import "EMUserInfo.h"
25#import "EMError.h"
26#import "EMUserInfoManagerDelegate.h"
27
28@protocol IEMUserInfoManager <NSObject>
29
30#pragma mark - Delegate
31
45- (void)addDelegate:(id<EMUserInfoManagerDelegate> _Nullable)aDelegate
46 delegateQueue:(dispatch_queue_t _Nullable)aQueue;
47
59- (void)removeDelegate:(id<EMUserInfoManagerDelegate> _Nonnull)aDelegate;
60
61#pragma mark - User Info
62
76- (void)updateOwnUserInfo:(EMUserInfo*_Nonnull)aUserData
77 completion:(void (^_Nullable)(EMUserInfo*_Nullable aUserInfo,EMError *_Nullable aError))aCompletionBlock;
78
94- (void)updateOwnUserInfo:(NSString*_Nullable )aValue
95 withType:(EMUserInfoType)aType
96 completion:(void (^_Nullable )(EMUserInfo*_Nullable aUserInfo,EMError * _Nullable aError))aCompletionBlock;
97
111- (void)fetchUserInfoById:(NSArray<NSString*>*_Nonnull)aUserIds
112 completion:(void (^_Nullable)(NSDictionary<NSString*,EMUserInfo*> *_Nullable aUserDatas,EMError *_Nullable aError))aCompletionBlock;
128- (void)fetchUserInfoById:(NSArray<NSString*>* _Nonnull)aUserIds
129 type:(NSArray<NSNumber*>*_Nonnull)aType
130 completion:(void (^_Nullable)(NSDictionary<NSString*,EMUserInfo*> *_Nullable aUserDatas,EMError *_Nullable aError))aCompletionBlock;
131
145- (NSDictionary<NSString*,EMUserInfo*> *_Nullable)getUserInfoByIds:(NSArray<NSString*>*_Nonnull)aUserIds;
146@end
147
Definition: EMError.h:27
Definition: EMUserInfo.h:36
Definition: EMUserInfoManagerDelegate.h:27
Definition: IEMUserInfoManager.h:28