# SetPushMsgCallback
For registration callback To get push message content
# Call parameter
No parameter
# Return parameters
attribute | Introductions |
---|---|
msgBody | The content of the push message |
# sample code
val request = WMPFPushMsgRequest()
request.baseRequest = WMPFBaseRequestHelper.checked()
val result = WMPFIPCInvoker.invokeAsync<IPCInovkerTask_SetPushMsgCallback,
WMPFPushMsgRequest, WMPFPushMsgResponse>(
request,
IPCInovkerTask_SetPushMsgCallback::class.java
) { response ->
ui.printlnToView("receive: " + resp.msgBody)
}
if (!result) {
it.onError(Exception("invoke listeningPushMsg fail"))
}