Agenda
The agenda service.
This class allows performing agenda related actions like adding a new contact, updating an existing one or fetching the contacts from specific sources.
Functions
Link copied to clipboard
Adds a listener to receive agenda events.
Link copied to clipboard
fun createContact(contact: Contact, onCompletion: (SippoResourceError?) -> Unit)
Content copied to clipboard
Adds a new contact.
Link copied to clipboard
fun deleteContact(contact: Contact, onCompletion: (SippoResourceError?) -> Unit)
Content copied to clipboard
Deletes the specified contact.
Link copied to clipboard
fun getContactBy(contactId: String, onCompletion: (Either<Contact, SippoResourceError>) -> Unit)
Content copied to clipboard
Fetch contact from the specified contactId.
Link copied to clipboard
fun getContactByUserId(userId: String, onCompletion: (Either<List<Contact>, SippoResourceError>) -> Unit)
Content copied to clipboard
Fetches contacts from the specified userId.
Link copied to clipboard
fun getContacts(query: SourceQuery, onCompletion: (Either<List<Contact>, SippoResourceError>) -> Unit)
Content copied to clipboard
Fetches all the contacts from the specified query.
Link copied to clipboard
Removes the specified listener.
Link copied to clipboard
fun updateContact(contact: Contact, onCompletion: (SippoResourceError?) -> Unit)
Content copied to clipboard
Updates an existing contact.