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
Declared In
floo_proxy.h
bindVoipTokenWithToken:
Bind VOIP device token for push service
- (BMXErrorCode)bindVoipTokenWithToken:(NSString *)*token*
Parameters
token
Device token
Return Value
Declared In
floo_proxy.h
clearAllNotifications
Clear all notifications on the notification bar
- (void)clearAllNotifications
Declared In
floo_proxy.h
clearNotificationWithNotificationId:
Clear a notification by ID
- (void)clearNotificationWithNotificationId:(long long)*notificationId*
Parameters
notificationId
Notification ID
Declared In
floo_proxy.h
clearTagsWithOperationId:
Clear tags by operation ID
- (BMXErrorCode)clearTagsWithOperationId:(NSString *)*operationId*
Parameters
operationId
Operation ID
Return Value
Declared In
floo_proxy.h
dealloc
- (void)dealloc
deleteTagsWithTags:operationId:
Remove tags by operation ID
- (BMXErrorCode)deleteTagsWithTags:(TagList *)*tags* operationId:(NSString *)*operationId*
Parameters
tags
tags
operationId
Operation ID
Return Value
Declared In
floo_proxy.h
getCert
Get the push service certificate
- (NSString *)getCert
Return Value
NSString
Declared In
floo_proxy.h
getPushProfile:forceRefresh:
Get the profile of push user
- (BMXErrorCode)getPushProfile:(BMXPushUserProfile *)*pushProfile* forceRefresh:(BOOL)*forceRefresh*
Parameters
forceRefresh
From server
Return Value
Declared In
floo_proxy.h
getTags:operationId:
Get tags of push user
- (BMXErrorCode)getTags:(TagList *)*tags* operationId:(NSString *)*operationId*
Parameters
tags
Tag list
operationId
Operation ID
Return Value
Declared In
floo_proxy.h
getToken
Get access token
- (NSString *)getToken
Return Value
NSString
Declared In
floo_proxy.h
initWithCptr:swigOwnCObject:
- (id)initWithCptr:(void *)*cptr* swigOwnCObject:(BOOL)*ownCObject*
loadLocalPushMessagesWithRefMsgId:size:result:
- (BMXErrorCode)loadLocalPushMessagesWithRefMsgId:(long long)*refMsgId* size:(unsigned long)*size* result:(BMXMessageList *)*result*
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
arg4
Search direction, Up for earlier
Declared In
floo_proxy.h
resume
Resume push function
- (BMXErrorCode)resume
Return Value
Declared In
floo_proxy.h
sendMessageWithContent:
Send a push message
- (void)sendMessageWithContent:(NSString *)*content*
Parameters
content
Declared In
floo_proxy.h
setBadge:
Set badge count
- (BMXErrorCode)setBadge:(int)*count*
Parameters
count
Badge count
Return Value
Declared In
floo_proxy.h
setGeoFenceMode
- (BMXErrorCode)setGeoFenceMode
setGeoFenceMode:
- (BMXErrorCode)setGeoFenceMode:(BOOL)*enable*
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
Declared In
floo_proxy.h
Example:
setPushMode:
Set whether push is allowed
- (BMXErrorCode)setPushMode:(BOOL)*enable*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setPushTime:endHour:
- (BMXErrorCode)setPushTime:(int)*startHour* endHour:(int)*endHour*
setRunBackgroundMode
- (BMXErrorCode)setRunBackgroundMode
setRunBackgroundMode:
Set whether push is allowed to run in the background
- (BMXErrorCode)setRunBackgroundMode:(BOOL)*enable*
Parameters
enable
Return Value
Declared In
floo_proxy.h
setSilenceTime:endHour:
Set the silence time range for the push service
- (BMXErrorCode)setSilenceTime:(int)*startHour* endHour:(int)*endHour*
Parameters
startHour
endHour
Return Value
Declared In
floo_proxy.h
setTags:operationId:
Set tags for push service
- (BMXErrorCode)setTags:(TagList *)*tags* operationId:(NSString *)*operationId*
Parameters
tags
operationId
Return Value
Declared In
floo_proxy.h
start
- (BMXErrorCode)start
startWithAlias:
- (BMXErrorCode)startWithAlias:(NSString *)*alias*
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
Declared In
floo_proxy.h
status
The status of push SDK
- (BMXPushService_PushSdkStatus)status
Return Value
Declared In
floo_proxy.h
stop
Stop push service
- (BMXErrorCode)stop
Return Value
Declared In
floo_proxy.h
unbindAliasWithAlias:
Unbind user alias
- (BMXErrorCode)unbindAliasWithAlias:(NSString *)*alias*
Parameters
alias
User alias
Return Value
Declared In
floo_proxy.h
Example: