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
User state listener
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="addDelegate:" %}{% endlanying_code_snippet %}
addDelegate:delegateQueue:#
- (void)addDelegate:(id<BMXUserServiceProtocol>)aDelegate delegateQueue:(dispatch_queue_t)aQueue
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="addDelegate:delegateQueue:" %}{% endlanying_code_snippet %}
bindDeviceWithToken:#
Bind device token
- (BMXErrorCode)bindDeviceWithToken:(NSString )token*
Parameters#
token
Device token
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="bindDeviceWithToken:" %}{% endlanying_code_snippet %}
bindDeviceWithToken:completion:#
Bind device token
- (void)bindDeviceWithToken:(NSString )token completion:(void ( ^ ) ( BMXError aError ))resBlock
Parameters#
token
Device token
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="bindDeviceWithToken:completion:" %}{% endlanying_code_snippet %}
dealloc#
- (void)dealloc
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="dealloc" %}{% endlanying_code_snippet %}
deleteDeviceWithDeviceSn:#
Delete a device
- (BMXErrorCode)deleteDeviceWithDeviceSn:(int)device_sn
Parameters#
device_sn
Device serial number
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="deleteDeviceWithDeviceSn:" %}{% endlanying_code_snippet %}
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
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="deleteDeviceWithDeviceSn:completion:" %}{% endlanying_code_snippet %}
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
callback
Download callback
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="downloadAvatarWithProfile:thumbnail:callback:" %}{% endlanying_code_snippet %}
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
callback
Download callback
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="downloadAvatarWithProfile:thumbnail:callback:completion:" %}{% endlanying_code_snippet %}
getDeviceList:#
Get my deivce list
- (BMXErrorCode)getDeviceList:(BMXDeviceList )deviceList*
Parameters#
deviceList
Devices returned by the operation. Pass an empty list; the method populates it.
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="getDeviceList:" %}{% endlanying_code_snippet %}
getDeviceListWithCompletion:#
Get my deivce list
- (void)getDeviceListWithCompletion:(void ( ^ ) ( BMXDeviceList deviceList , BMXError aError ))resBlock
Parameters#
deviceList
Devices returned by the operation. Pass an empty list; the method populates it.
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="getDeviceListWithCompletion:" %}{% endlanying_code_snippet %}
getProfile:completion:#
Get my user profile
- (void)getProfile:(BOOL)forceRefresh completion:(void ( ^ ) ( BMXUserProfile profile , BMXError aError ))resBlock
Parameters#
forceRefresh
From server
profile
User profile returned by the operation. Pass an empty shared_ptr; the method assigns the profile to it.
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="getProfile:completion:" %}{% endlanying_code_snippet %}
getProfile:forceRefresh:#
Get my user profile
- (BMXErrorCode)getProfile:(BMXUserProfile )profile forceRefresh:(BOOL)forceRefresh*
Parameters#
profile
User profile returned by the operation. Pass an empty shared_ptr; the method assigns the profile to it.
forceRefresh
From server
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="getProfile:forceRefresh:" %}{% endlanying_code_snippet %}
initWithCptr:swigOwnCObject:#
- (id)initWithCptr:(void )cptr swigOwnCObject:(BOOL)ownCObject*
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="initWithCptr:swigOwnCObject:" %}{% endlanying_code_snippet %}
removeDelegate:#
Remove a user service listener
- (void)removeDelegate:(id<BMXUserServiceProtocol>)aDelegate
Parameters#
listener
User state listener
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="removeDelegate:" %}{% endlanying_code_snippet %}
setAddFriendAuthMode:#
Set friend authorization mode
- (BMXErrorCode)setAddFriendAuthMode:(BMXUserProfile_AddFriendAuthMode)mode
Parameters#
mode
Contact request verification mode
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setAddFriendAuthMode:" %}{% endlanying_code_snippet %}
setAddFriendAuthMode:completion:#
Set friend authorization mode
- (void)setAddFriendAuthMode:(BMXUserProfile_AddFriendAuthMode)mode completion:(void ( ^ ) ( BMXError aError ))resBlock*
Parameters#
mode
Contact request verification mode
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setAddFriendAuthMode:completion:" %}{% endlanying_code_snippet %}
setAuthQuestion:#
Set friend authorization question
- (BMXErrorCode)setAuthQuestion:(BMXUserProfileAuthQuestion )authQuestion*
Parameters#
authQuestion
Contact request verification question
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setAuthQuestion:" %}{% endlanying_code_snippet %}
setAuthQuestion:completion:#
Set friend authorization question
- (void)setAuthQuestion:(BMXUserProfileAuthQuestion )authQuestion completion:(void ( ^ ) ( BMXError aError ))resBlock
Parameters#
authQuestion
Contact request verification question
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setAuthQuestion:completion:" %}{% endlanying_code_snippet %}
setAutoAcceptGroupInvite:#
Set whether to accept group invitation automatically
- (BMXErrorCode)setAutoAcceptGroupInvite:(BOOL)enable
Parameters#
enable
Whether to accept group invitations automatically: true to accept; false not to accept
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setAutoAcceptGroupInvite:" %}{% endlanying_code_snippet %}
setAutoAcceptGroupInvite:completion:#
Set whether to accept group invitation automatically
- (void)setAutoAcceptGroupInvite:(BOOL)enable completion:(void ( ^ ) ( BMXError aError ))resBlock*
Parameters#
enable
Whether to accept group invitations automatically: true to accept; false not to accept
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setAutoAcceptGroupInvite:completion:" %}{% endlanying_code_snippet %}
setAutoDownloadAttachment:#
Set whether download attachment automatically
- (BMXErrorCode)setAutoDownloadAttachment:(BOOL)enable
Parameters#
enable
Whether to download thumbnails and voice attachments automatically: true to download; false not to download
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setAutoDownloadAttachment:" %}{% endlanying_code_snippet %}
setAutoDownloadAttachment:completion:#
Set whether download attachment automatically
- (void)setAutoDownloadAttachment:(BOOL)enable completion:(void ( ^ ) ( BMXError aError ))resBlock*
Parameters#
enable
Whether to download thumbnails and voice attachments automatically: true to download; false not to download
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setAutoDownloadAttachment:completion:" %}{% endlanying_code_snippet %}
setEnablePush:#
Set whether to enable push function
- (BMXErrorCode)setEnablePush:(BOOL)enable
Parameters#
enable
Whether push is enabled: true to enable; false to disable
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setEnablePush:" %}{% endlanying_code_snippet %}
setEnablePush:completion:#
Set whether to enable push function
- (void)setEnablePush:(BOOL)enable completion:(void ( ^ ) ( BMXError aError ))resBlock*
Parameters#
enable
Whether push is enabled: true to enable; false to disable
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setEnablePush:completion:" %}{% endlanying_code_snippet %}
setEnablePushDetaile:#
Set whether to enable push message detail
- (BMXErrorCode)setEnablePushDetaile:(BOOL)enable
Parameters#
enable
Whether push notifications include details: true to include them; false to omit them
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setEnablePushDetaile:" %}{% endlanying_code_snippet %}
setEnablePushDetaile:completion:#
Set whether to enable push message detail
- (void)setEnablePushDetaile:(BOOL)enable completion:(void ( ^ ) ( BMXError aError ))resBlock*
Parameters#
enable
Whether push notifications include details: true to include them; false to omit them
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setEnablePushDetaile:completion:" %}{% endlanying_code_snippet %}
setNickname:#
Set my nickname
- (BMXErrorCode)setNickname:(NSString )nickname*
Parameters#
nickname
User display name
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setNickname:" %}{% endlanying_code_snippet %}
setNickname:completion:#
Set my nickname
- (void)setNickname:(NSString )nickname completion:(void ( ^ ) ( BMXError aError ))resBlock
Parameters#
nickname
User display name
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setNickname:completion:" %}{% endlanying_code_snippet %}
setNotificationSound:#
Set whether to enable sound notification
- (BMXErrorCode)setNotificationSound:(BOOL)enable
Parameters#
enable
Whether to play a sound for new messages: true to play; false to stay silent
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setNotificationSound:" %}{% endlanying_code_snippet %}
setNotificationSound:completion:#
Set whether to enable sound notification
- (void)setNotificationSound:(BOOL)enable completion:(void ( ^ ) ( BMXError aError ))resBlock*
Parameters#
enable
Whether to play a sound for new messages: true to play; false to stay silent
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setNotificationSound:completion:" %}{% endlanying_code_snippet %}
setNotificationVibrate:#
Set whether to enable vibrate notification
- (BMXErrorCode)setNotificationVibrate:(BOOL)enable
Parameters#
enable
Whether to vibrate for new messages: true to vibrate; false not to vibrate
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setNotificationVibrate:" %}{% endlanying_code_snippet %}
setNotificationVibrate:completion:#
Set whether to enable vibrate notification
- (void)setNotificationVibrate:(BOOL)enable completion:(void ( ^ ) ( BMXError aError ))resBlock*
Parameters#
enable
Whether to vibrate for new messages: true to vibrate; false not to vibrate
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setNotificationVibrate:completion:" %}{% endlanying_code_snippet %}
setPrivateInfo:#
Set private information(Invisible to friends)
- (BMXErrorCode)setPrivateInfo:(NSString )privateInfo*
Parameters#
privateInfo
Private extension information
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setPrivateInfo:" %}{% endlanying_code_snippet %}
setPrivateInfo:completion:#
Set private information(Invisible to friends)
- (void)setPrivateInfo:(NSString )privateInfo completion:(void ( ^ ) ( BMXError aError ))resBlock
Parameters#
privateInfo
Private extension information
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setPrivateInfo:completion:" %}{% endlanying_code_snippet %}
setPublicInfo:#
Set public information(Visible to friends)
- (BMXErrorCode)setPublicInfo:(NSString )publicInfo*
Parameters#
publicInfo
Public extension information
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setPublicInfo:" %}{% endlanying_code_snippet %}
setPublicInfo:completion:#
Set public information(Visible to friends)
- (void)setPublicInfo:(NSString )publicInfo completion:(void ( ^ ) ( BMXError aError ))resBlock
Parameters#
publicInfo
Public extension information
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setPublicInfo:completion:" %}{% endlanying_code_snippet %}
setPushAlias:bmxPushToken:#
@brief
- (BMXErrorCode)setPushAlias:(NSString )alias bmxPushToken:(NSString )bmxPushToken
Parameters#
nickname
Push display name
Return Value#
Discussion#
@brief
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setPushAlias:bmxPushToken:" %}{% endlanying_code_snippet %}
setPushAlias:bmxPushToken:completion:#
@brief
- (void)setPushAlias:(NSString )alias bmxPushToken:(NSString )bmxPushToken completion:(void ( ^ ) ( BMXError aError ))resBlock*
Parameters#
nickname
Push display name
Return Value#
Discussion#
@brief
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setPushAlias:bmxPushToken:completion:" %}{% endlanying_code_snippet %}
setPushNickname:#
Set nickname for push
- (BMXErrorCode)setPushNickname:(NSString )nickname*
Parameters#
nickname
Push display name
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setPushNickname:" %}{% endlanying_code_snippet %}
setPushNickname:completion:#
Set nickname for push
- (void)setPushNickname:(NSString )nickname completion:(void ( ^ ) ( BMXError aError ))resBlock
Parameters#
nickname
Push display name
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="setPushNickname:completion:" %}{% endlanying_code_snippet %}
uploadAvatarWithAvatarPath:callback:#
Upload my avatar
- (BMXErrorCode)uploadAvatarWithAvatarPath:(NSString )avatarPath callback:(void ( ^ ) ( int progress ))callback*
Parameters#
avatarPath
Local path of my avatar file
callback
Upload callback
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="uploadAvatarWithAvatarPath:callback:" %}{% endlanying_code_snippet %}
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
callback
Upload callback
Return Value#
Declared In#
floo_proxy.h
Example:
{% lanying_code_snippet repo="lanying-im-ios",class="BMXUserService",function="uploadAvatarWithAvatarPath:callback:completion:" %}{% endlanying_code_snippet %}