#import <IEMUserInfoManager.h>
@header IEMUserInfoManager.h @abstract 用户属性操作类。
- 作者
- Hyphenate
- 版本
- 3.00
◆ addDelegate:delegateQueue:
| - (void) addDelegate: |
|
(id< EMUserInfoManagerDelegate > _Nullable) |
aDelegate |
| delegateQueue: |
|
(dispatch_queue_t _Nullable) |
aQueue |
|
|
| |
添加回调代理。
- 参数
-
| aDelegate | 实现代理协议的对象。 |
| aQueue | 执行代理方法的队列。若在主线程上运行 app,将该参数设置为空。 |
◆ fetchUserInfoById:completion:
| - (void) fetchUserInfoById: |
|
(NSArray< NSString * > *_Nonnull) |
aUserIds |
| completion: |
|
(void(^)(NSDictionary< NSString *, EMUserInfo * > *_Nullable aUserDatas, EMError *_Nullable aError)) |
aCompletionBlock |
|
|
| |
根据用户 ID 获取用户属性。
- 参数
-
| aUserIds | 要获取用户属性的的用户 ID 列表。 |
| aCompletionBlock | 该方法完成调用的回调。如果该方法调用失败,会包含调用失败的原因。 |
◆ fetchUserInfoById:type:completion:
| - (void) fetchUserInfoById: |
|
(NSArray< NSString * > *_Nonnull) |
aUserIds |
| type: |
|
(NSArray< NSNumber * > *_Nonnull) |
aType |
| completion: |
|
(void(^)(NSDictionary< NSString *, EMUserInfo * > *_Nullable aUserDatas, EMError *_Nullable aError)) |
aCompletionBlock |
|
|
| |
根据用户 ID 列表及属性类型列表获取用户指定属性。
- 参数
-
| aUserIds | 要获取用户属性的的用户 ID 列表。 |
| aType | 要获取哪些类型的用户属性列表。 |
| aCompletionBlock | 该方法完成调用的回调。如果该方法调用失败,会包含调用失败的原因。 |
◆ getUserInfoByIds:
| - (NSDictionary< NSString *, EMUserInfo * > *_Nullable) getUserInfoByIds: |
|
(NSArray< NSString * > *_Nonnull) |
aUserIds |
|
根据用户 ID 从本地获取用户属性。
- 参数
-
| aUserIds | 要获取用户属性的的用户 ID 列表。 |
| aCompletionBlock | 该方法完成调用的回调。如果该方法调用失败,会包含调用失败的原因。 |
◆ removeDelegate:
◆ updateOwnUserInfo:completion:
| - (void) updateOwnUserInfo: |
|
(EMUserInfo *_Nonnull) |
aUserData |
| completion: |
|
(void(^)(EMUserInfo *_Nullable aUserInfo, EMError *_Nullable aError)) |
aCompletionBlock |
|
|
| |
设置自己的所有用户属性。
- 参数
-
| aUserData | 要设置的用户属性信息。 |
| aCompletionBlock | 该方法完成调用的回调。如果该方法调用失败,会包含调用失败的原因。 |
◆ updateOwnUserInfo:withType:completion:
| - (void) updateOwnUserInfo: |
|
(NSString *_Nullable) |
aValue |
| withType: |
|
(EMUserInfoType) |
aType |
| completion: |
|
(void(^)(EMUserInfo *_Nullable aUserInfo, EMError *_Nullable aError)) |
aCompletionBlock |
|
|
| |
设置自己的指定用户属性。
- 参数
-
| aValue | 要设置的用户属性信息。 |
| aType | 要设置的用户属性类型。 |
| aCompletionBlock | 该方法完成调用的回调。如果该方法调用失败,会包含调用失败的原因。 |
该协议的文档由以下文件生成: