RxActivityResult
RxActivityResult copied to clipboard
Why not use "zhihu/RxLifecycle" in place of this lib?
Hello dev:
Why not use "zhihu/RxLifecycle" in place of this lib?
Like trello/RxLifecycle
RxNavi.observe(this, Event.ACTIVITY_RESULT).filter(new Predicate<ActivityResult>() {
@Override
public boolean test(ActivityResult activityResult) throws Exception {
return activityResult.requestCode() == 7788;
}
}).subscribe(new Consumer<ActivityResult>() {
@Override
public void accept(ActivityResult activityResult) throws Exception {
Intent responseData = activityResult.data();
// do sth here
}
});
I looked into the repo you linked (https://github.com/zhihu/RxLifecycle/). But there's no mention of ACTIVITY_RESULT
anywhere
trello/rxlifecycle has “Event.activity_result”. And trello's better than zhihu's. Hope it help you.--------原始郵件 --------主旨:Re: [nekocode/RxActivityResult] Why not use "zhihu/RxLifecycle" in place of this lib? (#5)寄件者:Martin Bonnin 收件者:nekocode/RxActivityResult 副本:GuangGuang ,Author I looked into the repo you linked (https://github.com/zhihu/RxLifecycle/). But there's no mention of ACTIVITY_RESULT anywhere
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.