Invitations

interface Invitations

Functions

acceptUserInvitation
Link copied to clipboard
abstract fun acceptUserInvitation(invitationId: String, listener: IResultListener?)
Accepts an invitation to join the user's network
addRainbowContactToNetwork
Link copied to clipboard
abstract fun addRainbowContactToNetwork(contact: IRainbowContact, listener: INotificationProxy.ISendInvitationListener?)
Invites a contact to join our network, if an invitation already exists for this contact, it's resent
cancelUserSentInvitation
Link copied to clipboard
abstract fun cancelUserSentInvitation(invitation: Invitation, listener: IResultListener?)
Cancels an invitation previously sent to a user Invitation can only be canceled if it's pending
declineUserInvitation
Link copied to clipboard
abstract fun declineUserInvitation(invitationId: String, listener: IResultListener?)
Declines an invitation to join the user's network
getReceivedUserInvitationById
Link copied to clipboard
abstract fun getReceivedUserInvitationById(invitationId: String): Invitation?
Gets a received invitation by a given id
getSentUserInvitationById
Link copied to clipboard
abstract fun getSentUserInvitationById(invitationId: String): Invitation?
Gets a sent invitation by a given id
inviteUserByEmail
Link copied to clipboard
abstract fun inviteUserByEmail(email: String, listener: INotificationProxy.ISendInvitationListener?)
Sends an email invitation to register an account on Rainbow
inviteUserBySms
Link copied to clipboard
abstract fun inviteUserBySms(phoneNumber: String, listener: INotificationProxy.ISendInvitationListener?)
Creates an sms invitation to register an account on Rainbow Note that this method will not send an SMS to the contact, it generates an invitation url available in the callback onSuccess it's up to you to send an sms with this invitation link.
isContactInvited
Link copied to clipboard
abstract fun isContactInvited(contact: IRainbowContact): Boolean
refreshReceivedInvitations
Link copied to clipboard
abstract fun refreshReceivedInvitations(listener: IUserProxy.IGetUserInvitationsListener?)
Refresh the list of received invitationsAfter onSuccess is triggered, the list receivedUserInvitations is automatically updated
refreshSentInvitations
Link copied to clipboard
abstract fun refreshSentInvitations(listener: IUserProxy.IGetUserInvitationsListener?)
Refresh the list of received invitationsAfter onSuccess is triggered, the list sentUserInvitations is automatically updated
removeRainbowContactFromNetwork
Link copied to clipboard
abstract fun removeRainbowContactFromNetwork(contact: IRainbowContact, listener: IResultListener?)
Removes a contact from our network

Properties

pendingReceivedUserInvitations
Link copied to clipboard
abstract val pendingReceivedUserInvitations: List<Invitation>
Gets all pending received invitations
pendingSentUserInvitations
Link copied to clipboard
abstract val pendingSentUserInvitations: List<Invitation>
Gets all pending sent invitations
receivedUserInvitations
Link copied to clipboard
abstract val receivedUserInvitations: ArrayItemList<Invitation>
Gets all received invitations, you can listen to the changes on the returned object ArrayItemList
sentUserInvitations
Link copied to clipboard
abstract val sentUserInvitations: ArrayItemList<Invitation>
Gets all sent invitations, you can listen to the changes on the returned object ArrayItemList