im::floo::floolib::BMXPushServiceListener

Public Functions

Name
synchronized void delete()
void swigReleaseOwnership()
void swigTakeOwnership()
void onPushStart(String bmxToken)
Push初始化完成通知。
void onPushStop()
Push功能停止通知。
void onCertRetrieved(String cert)
Push初始化完成后获取推送证书。
void onSetTags(String operationId)
设置用户推送成功回调。
void onGetTags(String operationId)
获取用户推送成功回调。
void onDeleteTags(String operationId)
删除用户推送成功回调。
void onClearTags(String operationId)
清空用户推送成功回调。
void onReceivePush(BMXMessageList list)
接收到新的Push通知。
void onStatusChanged(BMXMessage msg, [BMXErrorCode] error)
发送Push上行消息状态变化通知。
BMXPushServiceListener()
void registerPushService(BMXPushService service)

Protected Functions

Name
BMXPushServiceListener(long cPtr, boolean cMemoryOwn)
void finalize()
void swigDirectorDisconnect()
long getCPtr(BMXPushServiceListener obj)

Protected Attributes

Name
transient boolean swigCMemOwn

Public Functions Documentation

function delete

inline synchronized void delete()

Example:

function swigReleaseOwnership

inline void swigReleaseOwnership()

Example:

function swigTakeOwnership

inline void swigTakeOwnership()

Example:

function onPushStart

inline void onPushStart(
    String bmxToken
)

Push初始化完成通知。

Parameters:

  • bmxToken 当前push使用bmxToken

Example:

public void onPushStart(String bmxToken) {
    super.onPushStart(bmxToken);
    Log.d(TAG, "onPushStart" + bmxToken);
}

function onPushStop

inline void onPushStop()

Push功能停止通知。

Example:

public void onPushStop() {
    super.onPushStop();
    Log.d(TAG, "onPushStop");
}

function onCertRetrieved

inline void onCertRetrieved(
    String cert
)

Push初始化完成后获取推送证书。

Parameters:

  • cert 从服务器获取的推送证书

Example:

public void onCertRetrieved(String cert) {
    super.onCertRetrieved(cert);
    Log.d(TAG, "onCertRetrieved" + cert);
    BaseManager.getBMXClient().getSDKConfig().setPushCertName(cert);
    PushClientMgr.getManager().register(MaxIMPushService.this);
}

function onSetTags

inline void onSetTags(
    String operationId
)

设置用户推送成功回调。

Parameters:

  • operationId 操作id

Example:

public void onSetTags(String operationId) {
    super.onSetTags(operationId);
    Log.d(TAG, "onSetTags" + operationId);
}

function onGetTags

inline void onGetTags(
    String operationId
)

获取用户推送成功回调。

Parameters:

  • operationId 操作id

Example:

public void onGetTags(String operationId) {
    super.onGetTags(operationId);
    Log.d(TAG, "onGetTags" + operationId);
}

function onDeleteTags

inline void onDeleteTags(
    String operationId
)

删除用户推送成功回调。

Parameters:

  • operationId 操作id

Example:

public void onDeleteTags(String operationId) {
    super.onDeleteTags(operationId);
    Log.d(TAG, "onDeleteTags" + operationId);
}

function onClearTags

inline void onClearTags(
    String operationId
)

清空用户推送成功回调。

Parameters:

  • operationId 操作id

Example:

public void onClearTags(String operationId) {
    super.onClearTags(operationId);
    Log.d(TAG, "onClearTags" + operationId);
}

function onReceivePush

inline void onReceivePush(
    BMXMessageList list
)

接收到新的Push通知。

Parameters:

  • list Push通知列表

Example:

public void onReceivePush(BMXMessageList list) {
    super.onReceivePush(list);
    Log.d(TAG, "onReceivePush");
    //弹出Notification
    if (list != null && !list.isEmpty()) {
        BMXMessage message = list.get(0);
        if (message != null) {
            String title = !TextUtils.isEmpty(message.senderName()) ? message.senderName() : getString(R.string.app_name);
            String content = ChatUtils.getInstance().getMessageDesc(getApplicationContext(), message);
            Intent intent = getPackageManager().getLaunchIntentForPackage(getApplication().getPackageName());
            NotificationUtils.getInstance().showNotify(MsgConstants.ChannelImportance.PRIVATE, title, content, intent);
        }
    }
}

function onStatusChanged

inline void onStatusChanged(
    BMXMessage msg,
    BMXErrorCode error
)

发送Push上行消息状态变化通知。

Parameters:

  • msg 发生状态变化的上行消息
  • error 状态错误码

Example:

public void onStatusChanged(BMXMessage msg, BMXErrorCode error) {
    super.onStatusChanged(msg, error);
    Log.d(TAG, "onStatusChanged" + msg.content());
}

function BMXPushServiceListener

inline BMXPushServiceListener()

Example:

function registerPushService

inline void registerPushService(
    BMXPushService service
)

Protected Functions Documentation

Example:

function BMXPushServiceListener

inline BMXPushServiceListener(
    long cPtr,
    boolean cMemoryOwn
)

Example:

function finalize

inline void finalize()

Example:

function swigDirectorDisconnect

inline void swigDirectorDisconnect()

Example:

function getCPtr

static inline long getCPtr(
    BMXPushServiceListener obj
)

Protected Attributes Documentation

variable swigCMemOwn

transient boolean swigCMemOwn;

Example:


Updated on 2022-01-26 at 17:18:31 +0800

© 2019-2023 美信拓扑 | 官网 该文件修订时间: 2023-08-09 14:48:15

results matching ""

    No results matching ""