Android library to get contacts using RxJava2
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'
}
RxContacts.fetch(this)
.filter(m->m.getInVisibleGroup() == 1)
.toSortedList(Contact::compareTo)
.observeOn(Schedulers.io())
.subscribeOn(AndroidSchedulers.mainThread())
.subscribe(contacts -> {
// Do something...
});
use the original library https://github.com/UlrichRaab/rx-contacts