floo::BMXPushServiceListener
Public Functions
Name | |
---|---|
BMXPushServiceListener() Constructor |
|
virtual | ~BMXPushServiceListener() Destructor |
virtual void | onPushStart(const std::string bmxToken) Notification of push initialization complete. |
virtual void | onPushStop() Notification of push feature stop. |
virtual void | onCertRetrieved(const std::string cert) Get push certificate after push initialization. |
virtual void | onSetTags(const std::string & operationId) Set callback of user push success. |
virtual void | onGetTags(const std::string & operationId) Get callback of user push success. |
virtual void | onDeleteTags(const std::string & operationId) Delete callback of user push success. |
virtual void | onClearTags(const std::string & operationId) Clear callback of user push success. |
virtual void | onReceivePush(const BMXMessageList & list) New push notification received. |
virtual void | onStatusChanged(BMXMessagePtr msg, BMXErrorCode error) Send notification of push uplink message status change. |
void | registerPushService(BMXPushService * service) Register BMXPushService to which BMXPushServiceListener is bound (automatic registration in SDK) |
Protected Attributes
Name | |
---|---|
BMXPushService * | mService |
Public Functions Documentation
function BMXPushServiceListener
inline BMXPushServiceListener()
Constructor
Example:
function ~BMXPushServiceListener
inline virtual ~BMXPushServiceListener()
Destructor
Example:
function onPushStart
inline virtual void onPushStart(
const std::string bmxToken
)
Notification of push initialization complete.
Parameters:
- bmxToken bmxToken used in current push
Example:
function onPushStop
inline virtual void onPushStop()
Notification of push feature stop.
Example:
function onCertRetrieved
inline virtual void onCertRetrieved(
const std::string cert
)
Get push certificate after push initialization.
Parameters:
- cert Push certificate obtained from server
Example:
function onSetTags
inline virtual void onSetTags(
const std::string & operationId
)
Set callback of user push success.
Parameters:
- operationId Operation id
Example:
function onGetTags
inline virtual void onGetTags(
const std::string & operationId
)
Get callback of user push success.
Parameters:
- operationId Operation id
Example:
function onDeleteTags
inline virtual void onDeleteTags(
const std::string & operationId
)
Delete callback of user push success.
Parameters:
- operationId Operation id
Example:
function onClearTags
inline virtual void onClearTags(
const std::string & operationId
)
Clear callback of user push success.
Parameters:
- operationId Operation id
Example:
function onReceivePush
inline virtual void onReceivePush(
const BMXMessageList & list
)
New push notification received.
Parameters:
- list Push notification list
Example:
function onStatusChanged
inline virtual void onStatusChanged(
BMXMessagePtr msg,
BMXErrorCode error
)
Send notification of push uplink message status change.
Parameters:
- msg Uplink message with state change
- error State error code
Example:
function registerPushService
inline void registerPushService(
BMXPushService * service
)
Register BMXPushService to which BMXPushServiceListener is bound (automatic registration in SDK)
Parameters:
- service BMXPushService
Protected Attributes Documentation
variable mService
BMXPushService * mService;
Example:
Updated on 2022-01-26 at 17:20:40 +0800