# BMXUserManager

**Conforms to** NSObject\
**Declared in** BMXUserManager.h

## Instance Methods

### addDelegate:

`- (void)addDelegate:(id<BMXUserServiceProtocol>)*aDelegate*`

### addDelegate:delegateQueue:

`- (void)addDelegate:(id<BMXUserServiceProtocol>)*aDelegate* delegateQueue:(dispatch_queue_t)*aQueue*`

### bindDevice:completion:

绑定设备推送token

`- (void)bindDevice:(NSString *)*token* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Discussion

绑定设备推送token

#### Declared In

* `BMXUserManager.h`

### deleteDeviceByDeviceSN:completion:

删除设备

`- (void)deleteDeviceByDeviceSN:(NSInteger)*deviceSN* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Discussion

删除设备

#### Declared In

* `BMXUserManager.h`

### downloadAvatarWithProfile:thumbnail:progress:completion:

下载头像

`- (void)downloadAvatarWithProfile:(BMXUserProfile *)*profile* thumbnail:(BOOL)*thumbnail* progress:(void ( ^ ) ( int progress , BMXError *error ))*aProgress* completion:(void ( ^ ) ( BMXUserProfile *profile , BMXError *error ))*aCompletion*`

#### Parameters

_profile_\
用户信息

_aProgress_\
下载进度

_aCompletion_\
回调

#### Discussion

下载头像

#### Declared In

* `BMXUserManager.h`

### getDeviceListCompletion:

获取设备列表

`- (void)getDeviceListCompletion:(void ( ^ ) ( BMXError *error , NSArray *deviceList ))*aCompletionBlock*`

#### Discussion

获取设备列表

#### Declared In

* `BMXUserManager.h`

### getProfileForceRefresh:completion:

获取用户详情

`- (void)getProfileForceRefresh:(BOOL)*forceRefresh* completion:(void ( ^ ) ( BMXUserProfile *profile , BMXError *aError ))*aCompletionBlock*`

#### Discussion

获取用户详情

#### Declared In

* `BMXUserManager.h`

### removeDelegate:

`- (void)removeDelegate:(id<BMXUserServiceProtocol>)*aDelegate*`

### setAddFriendAuthMode:completion:

设置加好友验证方式

`- (void)setAddFriendAuthMode:(BMXAddFriendAuthMode)*addFriendAuthMode* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Parameters

_addFriendAuthMode_\
BMXAddFriendAuthMode

#### Discussion

设置加好友验证方式

#### Declared In

* `BMXUserManager.h`

### setAuthQuestion:completion:

设置加好友验证问题

`- (void)setAuthQuestion:(BMXAuthQuestion *)*authQuestion* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Parameters

_authQuestion_\
BMXAuthQuestion

#### Discussion

设置加好友验证问题

#### Declared In

* `BMXUserManager.h`

### setAutoAcceptGroupInvite:completion:

设置是否自动同意入群邀请

`- (void)setAutoAcceptGroupInvite:(BOOL)*autoAcceptGroupInvite* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Parameters

_autoAcceptGroupInvite_\
BOOL

#### Discussion

设置是否自动同意入群邀请

#### Declared In

* `BMXUserManager.h`

### setAutoDownloadAttachment:completion:

设置是否自动缩略图和语音附件

`- (void)setAutoDownloadAttachment:(BOOL)*autoDownloadAttachment* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Parameters

_autoDownloadAttachment_\
BOOL

#### Discussion

设置是否自动缩略图和语音附件

#### Declared In

* `BMXUserManager.h`

### setEnablePushDetail:completion:

设置是否推送详情

`- (void)setEnablePushDetail:(BOOL)*enablePushDetail* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Parameters

_enablePushDetail_\
BOOL

#### Discussion

设置是否推送详情

#### Declared In

* `BMXUserManager.h`

### setEnablePushStatus:completion:

设置是否允许推送

`- (void)setEnablePushStatus:(BOOL)*enablePushStatus* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Parameters

_enablePushStatus_\
BOOL

#### Discussion

设置是否允许推送

#### Declared In

* `BMXUserManager.h`

### setNickname:completion:

设置昵称

`- (void)setNickname:(NSString *)*nickname* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Discussion

设置昵称

#### Declared In

* `BMXUserManager.h`

### setNotificationSound:completion:

设置收到新消息是否声音提醒

`- (void)setNotificationSound:(BOOL)*notificationSound* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Parameters

_notificationSound_\
BOO

#### Discussion

设置收到新消息是否声音提醒

#### Declared In

* `BMXUserManager.h`

### setNotificationVibrate:completion:

设置收到新消息是否震动

`- (void)setNotificationVibrate:(BOOL)*notificationVibrate* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Parameters

_notificationVibrate_\
BOOL

#### Discussion

设置收到新消息是否震动

#### Declared In

* `BMXUserManager.h`

### setPrivateInfo:completion:

设置私有扩展信息

`- (void)setPrivateInfo:(NSString *)*privateInfo* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Parameters

_privateInfo_\
string

#### Discussion

设置私有扩展信息

#### Declared In

* `BMXUserManager.h`

### setPublicInfo:completion:

设置公开扩展信息

`- (void)setPublicInfo:(NSString *)*publicInfo* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Parameters

_publicInfo_\
string

#### Discussion

设置公开扩展信息

#### Declared In

* `BMXUserManager.h`

### setsetPushNickname:completion:

设置推送昵称

`- (void)setsetPushNickname:(NSString *)*nickname* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*`

#### Discussion

设置推送昵称

#### Declared In

* `BMXUserManager.h`

### uploadAvatarWithData:progress:

上传头像

`- (void)uploadAvatarWithData:(NSData *)*avatarData* progress:(void ( ^ ) ( int progress , BMXError *error ))*aProgressBlock*`

#### Parameters

_avatarData_\
头像

_aProgressBlock_\
上传进度

#### Discussion

上传头像

#### Declared In

* `BMXUserManager.h`
