RxActivityResult icon indicating copy to clipboard operation
RxActivityResult copied to clipboard

Why not use "zhihu/RxLifecycle" in place of this lib?

Open Guang1234567 opened this issue 6 years ago • 2 comments

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
            }
        });

Guang1234567 avatar Aug 09 '18 07:08 Guang1234567

I looked into the repo you linked (https://github.com/zhihu/RxLifecycle/). But there's no mention of ACTIVITY_RESULT anywhere

martinbonnin avatar Mar 06 '19 12:03 martinbonnin

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.

Guang1234567 avatar Mar 06 '19 16:03 Guang1234567