AgendaRx

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.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun createContact(contact: Contact): Completable

Adds a new contact.

Link copied to clipboard
fun deleteContact(contact: Contact): Completable

Deletes the specified contact.

Link copied to clipboard
fun getContactBy(contactId: String): Single<Contact>

Fetch contact from the specified contactId.

Link copied to clipboard
fun getContactByUserId(userId: String): Single<List<Contact>>

Fetches contacts from the specified userId.

Link copied to clipboard
fun getContacts(query: SourceQuery): Single<List<Contact>>

Fetches all the contacts from the specified query.

Link copied to clipboard
fun updateContact(contact: Contact): Completable

Updates an existing contact.

Properties

Link copied to clipboard
val contactAdded: Observable<Contact>

Emits when a Contact is added.

Link copied to clipboard
val contactDeleted: Observable<Contact>

Emits when a Contact is removed.

Link copied to clipboard
val contactUpdated: Observable<Contact>

Emits when a Contact gets updated.