/rx-contacts

Android library to get contacts using RxJava

Primary LanguageJavaApache License 2.0Apache-2.0

RxContacts

Android library to get contacts using RxJava

Current version: 1.1.4

Setup

To use this library your minSdkVersion must be >= 16.

In the build.gradle of your project add:

repositories {
    maven {
       url 'https://dl.bintray.com/ulrichraab/maven'
    }
}

In the build.gradle of your app module add:

dependencies {
    compile 'de.ulrichraab:rx-contacts:1.1.4'
}

Example

RxContacts.fetch(context)
          .subscribe(new Observer<Contact>() {
             @Override
             public void onCompleted() {
                // Loading done
             }
             @Override
             public void onError (Throwable e) {
                // Handle error
             }
             @Override
             public void onNext(Contact contact) {
                // Use the contact
             }
          });