class AgendaRx
Reactive API of Agenda.
This class replicates some of the methods included in Agenda but using Rx types as return values instead of callbacks.
val contactAdded: Observable<Contact>
Emits when a Contact is added. |
|
val contactDeleted: Observable<Contact>
Emits when a Contact is removed. |
|
val contactUpdated: Observable<Contact>
Emits when a Contact gets updated. |
fun createContact(contact: Contact): Completable
Adds a new contact. |
|
fun deleteContact(contact: Contact): Completable
Deletes the specified contact. |
|
fun getContacts(sources: List<Source>): Single<List<Contact>>
Fetches all the contacts from the specified sources. |
|
fun updateContact(contact: Contact): Completable
Updates an existing contact. |