RxContacts2

Additional

Language
Java
Version
1.0.1 (Dec 25, 2017)
Created
Jun 20, 2017
Updated
Jun 8, 2019 (Retired)
Owner
Mad Mirrajabi (mirrajabi)
Contributors
Sam Wolfand (swolfand)
Florian Levis (Gounlaf)
Mad Mirrajabi (mirrajabi)
Ulrich Raab (UlrichRaab)
touge (Tougee)
5
Activity
Badge
Generate
Download
Source code

rxjava2-contacts

Android library to get contacts using RxJava2

Usage

First add jitpack to your projects build.gradle file

repositories {
    maven { url 'https://jitpack.io' }
}

Then add the dependency in modules build.gradle file

dependencies {
    implementation 'com.github.mirrajabi:rx-contacts2:1.2.0'
}

Example

RxContacts.fetch(this)
          .filter(m->m.getInVisibleGroup() == 1)
          .toSortedList(Contact::compareTo)
          .observeOn(Schedulers.io())
          .subscribeOn(AndroidSchedulers.mainThread())
          .subscribe(contacts -> {
              // Do something...
          });

Using RxJava 1.x?

use the original library https://github.com/UlrichRaab/rx-contacts