65

两个类,让你再也不用实现onActivityResult()

 6 years ago
source link: https://juejin.im/post/5ad05330518825557b4d2851
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
当我们知道fragment仅仅可以收到自己请求的回调后,我们就可以用它来解耦activity中onActivityResult的逻辑了。一般情况下,如果一个activity中多个回调结果的话,onActivityResult()中会有各种case判断,并且这种

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK