Contacts

interface Contacts

This module is used to manage the contacts of the current session.

Functions

getAvatarUrl
Link copied to clipboard
abstract fun getAvatarUrl(contactId: String?): String?
Get the URL of a contact avatar from his id.
abstract fun getAvatarUrl(contact: IRainbowContact?, resolution: Int): String?
Get the avatar URL of a contact
getContactFromId
Link copied to clipboard
abstract fun getContactFromId(contactId: String?): IRainbowContact?
Get a contact from his id.
getContactFromJid
Link copied to clipboard
abstract fun getContactFromJid(jabberId: String?): IRainbowContact?
Get a contact from his jabber id.
getContactFromPhoneNumber
Link copied to clipboard
abstract fun getContactFromPhoneNumber(number: String?): IRainbowContact?
Get a contact from his number.
getUserDataFromId
Link copied to clipboard
abstract fun getUserDataFromId(id: String?, listener: IUserProxy.IGetUserDataListener?)
Get more information of a contact directly from the server.
isLoggedInUser
Link copied to clipboard
abstract fun isLoggedInUser(contact: IRainbowContact?): Boolean
Check if a given contact is the same as the logged in user.
refreshContactLastActivityDate
Link copied to clipboard
abstract fun refreshContactLastActivityDate(contact: IRainbowContact?)
Refresh the contact last activity date from server.
searchByJid
Link copied to clipboard
abstract fun searchByJid(jid: String?, listener: IRainbowContactsSearchListener?)
Search a contact by his jid.
searchByName
Link copied to clipboard
abstract fun searchByName(name: String, listener: IRainbowContactsSearchListener?)
Search a contact by his first or last name.
searchByNameOnlyInUserCompany
Link copied to clipboard
abstract fun searchByNameOnlyInUserCompany(name: String, listener: IRainbowContactsSearchListener?)
Search a contact by his first or last name but only in his company.
updateCalendarAutomaticReply
Link copied to clipboard
abstract fun updateCalendarAutomaticReply(contact: IRainbowContact?)
Update the contact calendar automatic reply from server.

Properties

rainbowContacts
Link copied to clipboard
abstract val rainbowContacts: ArrayItemList<IRainbowContact>
Get the list of Rainbow contacts
rainbowSupportBot
Link copied to clipboard
abstract val rainbowSupportBot: IRainbowContact?
Get a the Rainbow Support Bot contact.