Skip to content

mirrajabi/rx-contacts2

This branch is 16 commits ahead of, 10 commits behind UlrichRaab/rx-contacts:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7f630a7 · Oct 12, 2018

History

63 Commits
May 21, 2018
May 21, 2018
May 23, 2018
May 27, 2016
May 27, 2016
Oct 12, 2018
May 21, 2018
May 27, 2016
May 27, 2016
May 27, 2016
Jun 20, 2017

Repository files navigation

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

About

Android library to get contacts using RxJava2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%