BMXClient Class Reference

Inherits from BMXNetworkListener :
NSObject
Declared in floo_proxy.h

Overview

@interface Client instance

Properties

chatService

@property (nonatomic, strong, readonly) BMXChatService *chatService

groupService

@property (nonatomic, strong, readonly) BMXGroupService *groupService

pushService

@property (nonatomic, strong, readonly) BMXPushService *pushService

rosterService

@property (nonatomic, strong, readonly) BMXRosterService *rosterService

rtcService

@property (nonatomic, strong, readonly) BMXRTCService *rtcService

userService

@property (nonatomic, strong, readonly) BMXUserService *userService

Class Methods

createWithConfig:

Create a BMXClient

+ (BMXClient *)createWithConfig:(BMXSDKConfig *)*config*

Parameters

config
BMXSDKConfig SDK config created

Return Value

BMXClient

Declared In

  • floo_proxy.h

Example:

sharedClient

+ (instancetype)sharedClient

Instance Methods

Example:

changeAppIdWithAppId:

- (BMXErrorCode)changeAppIdWithAppId:(NSString *)*appId*

Example:

changeAppIdWithAppId:appSecret:

Change appId,also works on appId in BMXConfig

- (BMXErrorCode)changeAppIdWithAppId:(NSString *)*appId* appSecret:(NSString *)*appSecret*

Parameters

appId
The new appId

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

changeAppIdWithAppId:appSecret:completion:

Change appId,also works on appId in BMXConfig

- (void)changeAppIdWithAppId:(NSString *)*appId* appSecret:(NSString *)*appSecret* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

appId
The new appId

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

changeAppIdWithAppId:completion:

- (void)changeAppIdWithAppId:(NSString *)*appId* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Example:

connectStatus

Get connection status to the server

- (BMXConnectStatus)connectStatus

Return Value

BMXConnectStatus

Declared In

  • floo_proxy.h

Example:

dealloc

- (void)dealloc

Example:

deleteAccountWithPassword:

Delete my account

- (BMXErrorCode)deleteAccountWithPassword:(NSString *)*password*

Parameters

password
The password for my account

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

deleteAccountWithPassword:completion:

Delete my account

- (void)deleteAccountWithPassword:(NSString *)*password* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

password
The password for my account

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

disconnect

Disconnect from the server

- (void)disconnect

Declared In

  • floo_proxy.h

Example:

disconnectWithCompletion:

Disconnect from the server

- (void)disconnectWithCompletion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Declared In

  • floo_proxy.h

Example:

fastSignInByIdWithUid:password:

Fast login by user ID (A successful login required)

- (BMXErrorCode)fastSignInByIdWithUid:(long long)*uid* password:(NSString *)*password*

Parameters

uid
The user ID

password
The password

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

fastSignInByIdWithUid:password:completion:

Fast login by user ID (A successful login required)

- (void)fastSignInByIdWithUid:(long long)*uid* password:(NSString *)*password* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

uid
The user ID

password
The password

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

fastSignInByNameWithName:password:

Fast login by username (A successful login required)

- (BMXErrorCode)fastSignInByNameWithName:(NSString *)*name* password:(NSString *)*password*

Parameters

name
The username

password
The password

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

fastSignInByNameWithName:password:completion:

Fast login by username (A successful login required)

- (void)fastSignInByNameWithName:(NSString *)*name* password:(NSString *)*password* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

name
The username

password
The password

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getSDKConfig

Get SDK config

- (BMXSDKConfig *)getSDKConfig

Return Value

BMXSDKConfig

Declared In

  • floo_proxy.h

Example:

initializeServerConfigWithIsLocal:

Initialize server config to accelerate login speed

- (BMXErrorCode)initializeServerConfigWithIsLocal:(BOOL)*isLocal*

Parameters

isLocal
true for loading from local file, or downloading from server

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

initializeServerConfigWithIsLocal:completion:

Initialize server config to accelerate login speed

- (void)initializeServerConfigWithIsLocal:(BOOL)*isLocal* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

isLocal
true for loading from local file, or downloading from server

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

onNetworkChangedWithType:reconnect:

Send network status change events to SDK

- (void)onNetworkChangedWithType:(BMXNetworkType)*type* reconnect:(BOOL)*reconnect*

Parameters

type
New network type

reconnect
Need to reconnect or not

Declared In

  • floo_proxy.h

Example:

reconnect

Enforce reconnection

- (void)reconnect

Declared In

  • floo_proxy.h

Example:

reconnectWithCompletion:

Enforce reconnection

- (void)reconnectWithCompletion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Declared In

  • floo_proxy.h

Example:

sendMessageWithMsg:

Send a message

- (void)sendMessageWithMsg:(BMXMessage *)*msg*

Parameters

msg
The message

Declared In

  • floo_proxy.h

Example:

sendMessageWithMsg:completion:

Send a message

- (void)sendMessageWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
The message

Declared In

  • floo_proxy.h

Example:

signInByIdWithArg1:password:

Sign in by username

- (BMXErrorCode)signInByIdWithArg1:(long long)*arg1* password:(NSString *)*password*

Parameters

password
The password

name
THe username

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

signInByIdWithArg1:password:completion:

Sign in by user ID

- (void)signInByIdWithArg1:(long long)*arg1* password:(NSString *)*password* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

password
The password

int64_t
The user ID

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

signInByNameWithName:password:

Sign in by username

- (BMXErrorCode)signInByNameWithName:(NSString *)*name* password:(NSString *)*password*

Parameters

name
The username

password
The password

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

signInByNameWithName:password:completion:

Sign in by username

- (void)signInByNameWithName:(NSString *)*name* password:(NSString *)*password* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

name
The username

password
The password

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

signInStatus

Get login status

- (BMXSignInStatus)signInStatus

Return Value

BMXSignInStatus

Declared In

  • floo_proxy.h

Example:

signOut

- (BMXErrorCode)signOut

Example:

signOutWithCompletion:

- (void)signOutWithCompletion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Example:

signOutWithUid:

- (BMXErrorCode)signOutWithUid:(long long)*uid*

Example:

signOutWithUid:completion:

- (void)signOutWithUid:(long long)*uid* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Example:

signOutWithUid:ignoreUnbindDevice:

Sign out

- (BMXErrorCode)signOutWithUid:(long long)*uid* ignoreUnbindDevice:(BOOL)*ignoreUnbindDevice*

Parameters

uid
My user ID

ignoreUnbindDevice
Ignore unbinding device on sign out

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

signOutWithUid:ignoreUnbindDevice:completion:

Sign out

- (void)signOutWithUid:(long long)*uid* ignoreUnbindDevice:(BOOL)*ignoreUnbindDevice* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

uid
My user ID

ignoreUnbindDevice
Ignore unbinding device on sign out

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

signUpNewUserWithUsername:password:bmxUserProfilePtr:

Sign up a new account

- (BMXErrorCode)signUpNewUserWithUsername:(NSString *)*username* password:(NSString *)*password* bmxUserProfilePtr:(BMXUserProfile *)*bmxUserProfilePtr*

Parameters

username
The username

password
The password

bmxUserProfilePtr
Profile of the new user

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

signUpNewUserWithUsername:password:completion:

Sign up a new account

- (void)signUpNewUserWithUsername:(NSString *)*username* password:(NSString *)*password* completion:(void ( ^ ) ( BMXUserProfile *profile , BMXError *aError ))*resBlock*

Parameters

username
The username

password
The password

bmxUserProfilePtr
Profile of the new user

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

© 2019-2024 MaximTop | Homepage | Site Map Last modified time: 2024-09-26 03:17:35

results matching ""

    No results matching ""