Android的 - 任何类似iPhone的SDK代表回调? [英] Android - Anything similar to the iPhone SDK Delegate Callbacks?
问题描述
我刚换了从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.
谢谢!
推荐答案
没关系......找到了答案在这里:)
Never mind... found the answer here :)
<一个href="http://www.javaworld.com/javaworld/javatips/jw-javatip10.html">http://www.javaworld.com/javaworld/javatips/jw-javatip10.html
这篇关于Android的 - 任何类似iPhone的SDK代表回调?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!