nisd93 / rx-contacts

Android library to get contacts using RxJava

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Android library to get contacts using RxJava

License:Apache License 2.0


Languages

Language:Java 100.0%