Android - 与iPhone SDK类似的任何代码回调? [英] Android - Anything similar to the iPhone SDK Delegate Callbacks?

查看:143
本文介绍了Android - 与iPhone SDK类似的任何代码回调?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从iPhone切换到Android,正在寻找类似于iPhone SDK中的一些类似的东西,当一个类完成某个任务时,它会在委托中的对象集中调用委托方法。

I just switched over from iPhone to Android and am looking for something similar to where in the iPhone SDK, when a class finishes a certain task, it calls delegate methods in objects set as it's delegates.

我不需要太多的细节。我浏览了文档,没有找到任何东西(最接近的是播放意图,这似乎更像iOS通知)。

I don't need too many details. I went through the docs and didn't find anything (the closest I got was "broadcast intents" which seem more like iOS notifications).

即使有人可以指出我对于正确的文档,这将是非常好的。

Even if someone can point me to the correct documentation, it would be great.

谢谢!

推荐答案

p>没关系...在这里找到答案:)

Never mind... found the answer here :)

http://www.javaworld.com/javaworld/javatips/jw-javatip10.html

这篇关于Android - 与iPhone SDK类似的任何代码回调?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆