LANYINGDevelopers
Web & Mini ProgramiOSAndroidC++Server API

BMXPushService Class Reference#

Inherits from NSObject
Declared in floo_proxy.h

Overview#

@interface Push Service

Properties#

swigCMemOwn#

@property (nonatomic) BOOL swigCMemOwn

swigCPtr#

@property (nonatomic) void *swigCPtr

Instance Methods#

bindDeviceTokenWithToken:#

Bind device token for push service

- (BMXErrorCode)bindDeviceTokenWithToken:(NSString )token*

Parameters#

token
Device token

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

bindVoipTokenWithToken:#

Bind VOIP device token for push service

- (BMXErrorCode)bindVoipTokenWithToken:(NSString )token*

Parameters#

token
Device token

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

clearAllNotifications#

Clear all notifications on the notification bar

- (void)clearAllNotifications

Declared In#

  • floo_proxy.h


Example:

clearNotificationWithNotificationId:#

Clear a notification by ID

- (void)clearNotificationWithNotificationId:(long long)notificationId

Parameters#

notificationId
Notification ID

Declared In#

  • floo_proxy.h


Example:

clearTagsWithOperationId:#

Clear tags by operation ID

- (BMXErrorCode)clearTagsWithOperationId:(NSString )operationId*

Parameters#

operationId
Operation ID

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

dealloc#

- (void)dealloc


Example:

deleteTagsWithTags:operationId:#

Remove tags by operation ID

- (BMXErrorCode)deleteTagsWithTags:(TagList )tags operationId:(NSString )operationId

Parameters#

tags
tags

operationId
Operation ID

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

getCert#

Get the push service certificate

- (NSString *)getCert

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

getPushProfile:forceRefresh:#

Get the profile of push user

- (BMXErrorCode)getPushProfile:(BMXPushUserProfile )pushProfile forceRefresh:(BOOL)forceRefresh*

Parameters#

forceRefresh
From server

profile
Push profile returned by the operation. Pass an empty shared_ptr; the method assigns the profile to it.

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

getTags:operationId:#

Get tags of push user

- (BMXErrorCode)getTags:(TagList )tags operationId:(NSString )operationId

Parameters#

tags
Tag list

operationId
Operation ID

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

getToken#

Get access token

- (NSString *)getToken

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

initWithCptr:swigOwnCObject:#

- (id)initWithCptr:(void )cptr swigOwnCObject:(BOOL)ownCObject*


Example:

loadLocalPushMessagesWithRefMsgId:size:result:#

- (BMXErrorCode)loadLocalPushMessagesWithRefMsgId:(long long)refMsgId size:(unsigned long)size result:(BMXMessageList )result*


Example:

loadLocalPushMessagesWithRefMsgId:size:result:arg4:#

Load push messages in local db

- (BMXErrorCode)loadLocalPushMessagesWithRefMsgId:(long long)refMsgId size:(unsigned long)size result:(BMXMessageList )result arg4:(BMXPushService_PushDirection)arg4*

Parameters#

refMsgId
First Message Id

size
Message list as result

result
Local push messages loaded from the database

arg4
Direction for loading push messages; earlier messages are loaded by default

Declared In#

  • floo_proxy.h


Example:

resume#

Resume push function

- (BMXErrorCode)resume

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

sendMessageWithContent:#

Send a push message

- (void)sendMessageWithContent:(NSString )content*

Parameters#

content
Content of the upstream push message

Declared In#

  • floo_proxy.h


Example:

setBadge:#

Set badge count

- (BMXErrorCode)setBadge:(int)count

Parameters#

count
Badge count

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

setGeoFenceMode#

- (BMXErrorCode)setGeoFenceMode


Example:

setGeoFenceMode:#

- (BMXErrorCode)setGeoFenceMode:(BOOL)enable


Example:

setGeoFenceMode:isAllow:#

Set geo-fencing mode

- (BMXErrorCode)setGeoFenceMode:(BOOL)enable isAllow:(BOOL)isAllow

Parameters#

enable
Enable the feature

isAllow
Does the user allow

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

setPushMode#

Set whether push is allowed

- (BMXErrorCode)setPushMode

Parameters#

startHour
Hour at which push delivery becomes allowed after the quiet period

endHour
Hour when the silent push period ends

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

setPushMode:#

Set push enabled state. Default enabled.

- (BMXErrorCode)setPushMode:(BOOL)enable

Parameters#

enable
Whether push notifications are enabled

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

setPushTime:endHour:#

- (BMXErrorCode)setPushTime:(int)startHour endHour:(int)endHour


Example:

setRunBackgroundMode#

- (BMXErrorCode)setRunBackgroundMode


Example:

setRunBackgroundMode:#

Set whether push is allowed to run in the background

- (BMXErrorCode)setRunBackgroundMode:(BOOL)enable

Parameters#

enable
Whether push is running in the background.

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

setSilenceTime:endHour:#

Set the silence time range for the push service

- (BMXErrorCode)setSilenceTime:(int)startHour endHour:(int)endHour

Parameters#

startHour
Hour at which the push quiet period starts

endHour
Hour at which the push quiet period ends

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

setTags:operationId:#

Set tags for push service

- (BMXErrorCode)setTags:(TagList )tags operationId:(NSString )operationId

Parameters#

tags
Tag list

operationId
Operation ID

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

start#

- (BMXErrorCode)start


Example:

startWithAlias:#

- (BMXErrorCode)startWithAlias:(NSString )alias*


Example:

startWithAlias:bmxToken:#

Start push service

- (BMXErrorCode)startWithAlias:(NSString )alias bmxToken:(NSString )bmxToken

Parameters#

alias
User alias for push service

bmxToken
User access token

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

status#

The status of push SDK

- (BMXPushService_PushSdkStatus)status

Return Value#

BMXPushService_PushSdkStatus

Declared In#

  • floo_proxy.h


Example:

stop#

Stop push service

- (BMXErrorCode)stop

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

unbindAliasWithAlias:#

Unbind user alias

- (BMXErrorCode)unbindAliasWithAlias:(NSString )alias*

Parameters#

alias
User alias

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h
Generated API content with concise AI notes where context helps.