All Projects → nekocode → Rxactivityresult

nekocode / Rxactivityresult

This is a library that can help you to receive results from startActivityForResult() as an Observable.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Rxactivityresult

Graphql Retrofit Converter
A Retrofit 2 Converter.Factory for GraphQL.
Stars: ✭ 46 (-39.47%)
Mutual labels:  rxjava2
Kotlin Android Scaffolding
An android project structure using kotlin and most common libraries.
Stars: ✭ 53 (-30.26%)
Mutual labels:  rxjava2
Weatherapplication
A WeatherApplication with usage of different libraries of Android.
Stars: ✭ 61 (-19.74%)
Mutual labels:  rxjava2
Jsoupsample
jsoupSample
Stars: ✭ 48 (-36.84%)
Mutual labels:  rxjava2
Kotlin Link Parser
Link preview for android
Stars: ✭ 50 (-34.21%)
Mutual labels:  rxjava2
Tdcapp
Sample app which access the TDC (The Developer's Conference) REST API.
Stars: ✭ 55 (-27.63%)
Mutual labels:  rxjava2
Todo List
待办事项APP
Stars: ✭ 45 (-40.79%)
Mutual labels:  rxjava2
Android App Architecture Mvvm Databinding
A simple but complete project (in both Java & Kotlin) to demonstrate the Android application architecture with MVVM pattern, a client app for The Movie DB Web API. Dagger2 is used for dependency injection and RxJava is used for RFP (Reactive Functional Programming).
Stars: ✭ 69 (-9.21%)
Mutual labels:  rxjava2
Business Search App Java
Showcases object oriented programming in Java, Java Swing, Kotlin, and Android
Stars: ✭ 53 (-30.26%)
Mutual labels:  rxjava2
Aiyagirl
🔥 爱吖妹纸(含 Kotlin 分支版本)——Retrofit + RxJava + MVP 架构 APP 体验代码家的干货集中营 Gank.io,福利多多,不容错过
Stars: ✭ 1,109 (+1359.21%)
Mutual labels:  rxjava2
Rxjavaapp
学习RxJava操作符的APP,新增RxJava2.x介绍
Stars: ✭ 1,049 (+1280.26%)
Mutual labels:  rxjava2
Thirtyinch
a MVP library for Android favoring a stateful Presenter
Stars: ✭ 1,052 (+1284.21%)
Mutual labels:  rxjava2
Espresso
🚚 Espresso is an express delivery tracking app designed with Material Design style, built on MVP(Model-View-Presenter) architecture with RxJava2, Retrofit2, Realm database and ZXing
Stars: ✭ 1,084 (+1326.32%)
Mutual labels:  rxjava2
Bigbang
Android base project used by Xmartlabs team
Stars: ✭ 47 (-38.16%)
Mutual labels:  rxjava2
Gankioclient
利用干货集中营的API自制练手之作
Stars: ✭ 63 (-17.11%)
Mutual labels:  rxjava2
Newssync
Sample application with MVVM pattern using RxJava and Architecture Components
Stars: ✭ 46 (-39.47%)
Mutual labels:  rxjava2
Retrokotlin
Simple Android app to show how unit testing with MockWebServer and Architecture Components (ViewModel + LiveData)
Stars: ✭ 55 (-27.63%)
Mutual labels:  rxjava2
Weexplus
🔨基于阿里WeexSDK跨平台方案,在原有的组件基础上,提供weex调用android native方法的一套扩展通信交互库,包含页面导航、数据存储、图片选择、二维码识别、权限等。
Stars: ✭ 73 (-3.95%)
Mutual labels:  rxjava2
Rxeventbus
A EventBus based on RxJava2, using Retention.CLASS annotation.
Stars: ✭ 68 (-10.53%)
Mutual labels:  rxjava2
Mosbymvi
Model-View-Intent (MVI) sample app built in Kotlin with Mosby, RxJava and RxBinding
Stars: ✭ 57 (-25%)
Mutual labels:  rxjava2

RxActivityResult

Apache 2.0 License Release

This is a library that can help you to receive results from startActivityForResult() as an Observable. You can use it in Activity or Fragment. It actullay call the startActivityForResult() in a Headless-Fragment that attaching to your Activity(/Fragment). And publish the activity results in the Headless-Fragment's onActivityResult().

Supports only RxJava 2 now.

Usage

Example:

RxActivityResult.startActivityForResult(this, intent, REQUEST_CODE)
        .subscribe(new Consumer<ActivityResult>() {
            @Override
            public void accept(@NonNull ActivityResult result) throws Exception {
                if (result.isOk()) {
                    final Intent data = result.getData();
                    // DO SOME THING
                }
            }
        });

See the sample for more detail.

Using with gradle

  • Add the JitPack repository to your build.gradle repositories:
repositories {
    // ...
    maven { url "https://jitpack.io" }
}
  • Add the core dependency:
dependencies {
    compile 'com.github.nekocode.rxactivityresult:rxactivityresult:{lastest-version}'
}
  • (Optional) Add the below library if you need to support api 9 and later. Besides, if you already add support-v4 dependency, I will also suggest you to use this compact library, and then use the RxActivityResultCompact instead of the RxActivityResult.
dependencies {
    compile 'com.github.nekocode.rxactivityresult:rxactivityresult-compact:{lastest-version}'
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].