addParticipantToBubble

abstract fun addParticipantToBubble(room: IRainbowRoom, contact: IRainbowContact, listener: RainbowListener<Unit, AddRoomParticipantsError>? = null)

Add one participant to a bubble with invitation and as a user.

Parameters

room

IRainbowRoom The bubble where the participant is added

contact

IRainbowContact The contact to add in the bubble

listener

RainbowListenerAddRoomParticipantsError> callback (onSuccess, onError)


abstract fun addParticipantToBubble(room: IRainbowRoom, contact: IRainbowContact?, asModerator: Boolean, withInvitation: Boolean, listener: RainbowListener<Unit, AddRoomParticipantsError>? = null)

Add one participant to a bubble.

Parameters

room

IRainbowRoom The bubble where the participant is added

contact

IRainbowContact The contact to add in the bubble

asModerator

boolean Set to true to invite a contact as a moderator (false by default)

withInvitation

boolean Set to true to send an invitation or false to add someone directly in a bubble (true by default)

listener

RainbowListenerAddRoomParticipantsError> callback (onSuccess, onError)