BMXUserService Class Reference
Inherits from NSObject
Declared in floo_proxy.h
Overview
@interface User Service
Properties
swigCMemOwn
@property (nonatomic) BOOL swigCMemOwn
swigCPtr
@property (nonatomic) void *swigCPtr
Instance Methods
addDelegate:
Add a user service listener
- (void)addDelegate:(id<BMXUserServiceProtocol>)*aDelegate*
Parameters
listener
Declared In
floo_proxy.h
addDelegate:delegateQueue:
- (void)addDelegate:(id<BMXUserServiceProtocol>)*aDelegate* delegateQueue:(dispatch_queue_t)*aQueue*
bindDeviceWithToken:
Bind device token
- (BMXErrorCode)bindDeviceWithToken:(NSString *)*token*
Parameters
token
Return Value
Declared In
floo_proxy.h
bindDeviceWithToken:completion:
Bind device token
- (void)bindDeviceWithToken:(NSString *)*token* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
token
Return Value
Declared In
floo_proxy.h
dealloc
- (void)dealloc
deleteDeviceWithDeviceSn:
Delete a device
- (BMXErrorCode)deleteDeviceWithDeviceSn:(int)*device_sn*
Parameters
device_sn
Device serial number
Return Value
Declared In
floo_proxy.h
deleteDeviceWithDeviceSn:completion:
Delete a device
- (void)deleteDeviceWithDeviceSn:(int)*device_sn* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
device_sn
Device serial number
Return Value
Declared In
floo_proxy.h
downloadAvatarWithProfile:thumbnail:callback:
Download my avatar
- (BMXErrorCode)downloadAvatarWithProfile:(BMXUserProfile *)*profile* thumbnail:(BOOL)*thumbnail* callback:(void ( ^ ) ( int progress ))*callback*
Parameters
profile
My user profile
thumbnail
Whether to download my avatar thumbnail
Return Value
Declared In
floo_proxy.h
downloadAvatarWithProfile:thumbnail:callback:completion:
Download my avatar
- (void)downloadAvatarWithProfile:(BMXUserProfile *)*profile* thumbnail:(BOOL)*thumbnail* callback:(void ( ^ ) ( int progress ))*callback* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
profile
My user profile
thumbnail
Whether to download my avatar thumbnail
Return Value
Declared In
floo_proxy.h
getDeviceList:
Get my deivce list
- (BMXErrorCode)getDeviceList:(BMXDeviceList *)*deviceList*
Parameters
deviceList
Return Value
Declared In
floo_proxy.h
getDeviceListWithCompletion:
Get my deivce list
- (void)getDeviceListWithCompletion:(void ( ^ ) ( BMXDeviceList *deviceList , BMXError *aError ))*resBlock*
Parameters
deviceList
Return Value
Declared In
floo_proxy.h
getProfile:completion:
Get my user profile
- (void)getProfile:(BOOL)*forceRefresh* completion:(void ( ^ ) ( BMXUserProfile *profile , BMXError *aError ))*resBlock*
Parameters
forceRefresh
From server
profile
Return Value
Declared In
floo_proxy.h
getProfile:forceRefresh:
Get my user profile
- (BMXErrorCode)getProfile:(BMXUserProfile *)*profile* forceRefresh:(BOOL)*forceRefresh*
Parameters
profile
forceRefresh
From server
Return Value
Declared In
floo_proxy.h
initWithCptr:swigOwnCObject:
- (id)initWithCptr:(void *)*cptr* swigOwnCObject:(BOOL)*ownCObject*
removeDelegate:
Remove a user service listener
- (void)removeDelegate:(id<BMXUserServiceProtocol>)*aDelegate*
Parameters
listener
Declared In
floo_proxy.h
setAddFriendAuthMode:
Set friend authorization mode
- (BMXErrorCode)setAddFriendAuthMode:(BMXUserProfile_AddFriendAuthMode)*mode*
Parameters
mode
Return Value
Declared In
floo_proxy.h
setAddFriendAuthMode:completion:
Set friend authorization mode
- (void)setAddFriendAuthMode:(BMXUserProfile_AddFriendAuthMode)*mode* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
mode
Return Value
Declared In
floo_proxy.h
setAuthQuestion:
Set friend authorization question
- (BMXErrorCode)setAuthQuestion:(BMXUserProfileAuthQuestion *)*authQuestion*
Parameters
authQuestion
Return Value
Declared In
floo_proxy.h
setAuthQuestion:completion:
Set friend authorization question
- (void)setAuthQuestion:(BMXUserProfileAuthQuestion *)*authQuestion* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
authQuestion
Return Value
Declared In
floo_proxy.h
setAutoAcceptGroupInvite:
Set whether to accept group invitation automatically
- (BMXErrorCode)setAutoAcceptGroupInvite:(BOOL)*enable*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setAutoAcceptGroupInvite:completion:
Set whether to accept group invitation automatically
- (void)setAutoAcceptGroupInvite:(BOOL)*enable* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setAutoDownloadAttachment:
Set whether download attachment automatically
- (BMXErrorCode)setAutoDownloadAttachment:(BOOL)*enable*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setAutoDownloadAttachment:completion:
Set whether download attachment automatically
- (void)setAutoDownloadAttachment:(BOOL)*enable* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setEnablePush:
Set whether to enable push function
- (BMXErrorCode)setEnablePush:(BOOL)*enable*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setEnablePush:completion:
Set whether to enable push function
- (void)setEnablePush:(BOOL)*enable* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setEnablePushDetaile:
Set whether to enable push message detail
- (BMXErrorCode)setEnablePushDetaile:(BOOL)*enable*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setEnablePushDetaile:completion:
Set whether to enable push message detail
- (void)setEnablePushDetaile:(BOOL)*enable* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setNickname:
Set my nickname
- (BMXErrorCode)setNickname:(NSString *)*nickname*
Parameters
nickname
Return Value
Declared In
floo_proxy.h
setNickname:completion:
Set my nickname
- (void)setNickname:(NSString *)*nickname* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
nickname
Return Value
Declared In
floo_proxy.h
setNotificationSound:
Set whether to enable sound notification
- (BMXErrorCode)setNotificationSound:(BOOL)*enable*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setNotificationSound:completion:
Set whether to enable sound notification
- (void)setNotificationSound:(BOOL)*enable* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setNotificationVibrate:
Set whether to enable vibrate notification
- (BMXErrorCode)setNotificationVibrate:(BOOL)*enable*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setNotificationVibrate:completion:
Set whether to enable vibrate notification
- (void)setNotificationVibrate:(BOOL)*enable* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setPrivateInfo:
Set private information(Invisible to friends)
- (BMXErrorCode)setPrivateInfo:(NSString *)*privateInfo*
Parameters
privateInfo
Return Value
Declared In
floo_proxy.h
setPrivateInfo:completion:
Set private information(Invisible to friends)
- (void)setPrivateInfo:(NSString *)*privateInfo* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
privateInfo
Return Value
Declared In
floo_proxy.h
setPublicInfo:
Set public information(Visible to friends)
- (BMXErrorCode)setPublicInfo:(NSString *)*publicInfo*
Parameters
publicInfo
Return Value
Declared In
floo_proxy.h
setPublicInfo:completion:
Set public information(Visible to friends)
- (void)setPublicInfo:(NSString *)*publicInfo* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
publicInfo
Return Value
Declared In
floo_proxy.h
setPushAlias:bmxPushToken:
@brief
- (BMXErrorCode)setPushAlias:(NSString *)*alias* bmxPushToken:(NSString *)*bmxPushToken*
Parameters
nickname
My nickname
Return Value
Discussion
@brief
Declared In
floo_proxy.h
setPushAlias:bmxPushToken:completion:
@brief
- (void)setPushAlias:(NSString *)*alias* bmxPushToken:(NSString *)*bmxPushToken* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
alias
User alias for push
Return Value
Discussion
@brief
Declared In
floo_proxy.h
setPushNickname:
Set nickname for push
- (BMXErrorCode)setPushNickname:(NSString *)*nickname*
Parameters
nickname
Return Value
Declared In
floo_proxy.h
setPushNickname:completion:
Set nickname for push
- (void)setPushNickname:(NSString *)*nickname* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
nickname
Return Value
Declared In
floo_proxy.h
uploadAvatarWithAvatarPath:callback:
Upload my avatar
- (BMXErrorCode)uploadAvatarWithAvatarPath:(NSString *)*avatarPath* callback:(void ( ^ ) ( int progress ))*callback*
Parameters
avatarPath
Local path of my avatar file
Return Value
Declared In
floo_proxy.h
uploadAvatarWithAvatarPath:callback:completion:
Upload my avatar
- (void)uploadAvatarWithAvatarPath:(NSString *)*avatarPath* callback:(void ( ^ ) ( int progress ))*callback* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*
Parameters
avatarPath
Local path of my avatar file
Return Value
Declared In
floo_proxy.h
Example: