在这个模块中,我们声明了一个这种类型的函数来处理到达的数据。
In the module, I declare a function of this type to deal with the incoming data.
在这种情况下,当服务器响应到达浏览器时,回调函数会处理服务器响应。
In that case, the server response is handled by the callback function when the server response arrives at the browser.
最后,receiver类将其自身作为PostServiceListener进行提交,这样,当通知到达时,post服务将回调posted函数。
Finally, the Receiver class submits itself as a PostServiceListener so that the post service calls the posted function back when a notification arrives.
应用推荐