# ConferenceRx

class ConferenceRx

Reactive API of Conference.

This class replicates some of the methods included in Conference but using Rx types as return values instead of callbacks. It also exposes the events associated with one particular conference using Rx observables.

## Properties

invitationUpdated
Link copied to clipboard
val invitationUpdated: Observable<Invitation>

Emits when an Invitation is updated. It will emit whenever an invite or cancel request is processed (in these cases,the state will be Pending or Canceled respectively) and when the invitation result is received (the state will be Accepted or Rejected depending on the response).

localVideoAdded
Link copied to clipboard
val localVideoAdded: Observable<Boolean>

Emits true when the local video is shared. It will not emit any value when the video is no longer shared.

localVideoRemoved
Link copied to clipboard
val localVideoRemoved: Observable<Boolean>

Emits true when the local video is no longer shared. It will not emit any value when the video is shared.

participantAdded
Link copied to clipboard
val participantAdded: Observable<Participant>

Emits when a Participant is added to the conference.

participantHeld
Link copied to clipboard
val participantHeld: Observable<String>

Emits the participant's identifier when this one is removed from the conference.

participantRemoved
Link copied to clipboard
val participantRemoved: Observable<String>

Emits the participant's identifier when this one is removed from the conference.

participants
Link copied to clipboard
val participants: Observable<List<Participant>>

Emits an event when the list of conference Participants is updated.

participantUnheld
Link copied to clipboard
val participantUnheld: Observable<String>

Emits the participant's identifier when this one is removed from the conference.

remoteVideoAdded
Link copied to clipboard
val remoteVideoAdded: Observable<Contact>

Emits the participant's name when this one starts sharing video.

remoteVideoRemoved
Link copied to clipboard
val remoteVideoRemoved: Observable<Contact>

Emits the participant's name when this one stops sharing video.

state
Link copied to clipboard
val state: Observable<JanusConference.State>

Emits the conference state whenever it changes. When a subscriber is added, it will also emit the current conference state.

transferReceived
Link copied to clipboard
val transferReceived: Observable<Transfer>

Emits when a new Transfer is received.

## Functions

acceptAttendedTransfer
Link copied to clipboard
fun acceptAttendedTransfer(): Completable

Accepts an attended transfer in progress.

cancelAttendedTransfer
Link copied to clipboard
fun cancelAttendedTransfer(): Completable

Cancels an attended transfer in progress.

cancelInviteToParticipant
Link copied to clipboard
fun cancelInviteToParticipant(participant: Participant): Completable

Cancels the invitation made for the user to the specified participant.

expelParticipant
Link copied to clipboard
fun expelParticipant(participant: Participant): Completable

Expels the specified participant from this conference.

getInvitations
Link copied to clipboard
fun getInvitations(): Single<List<Invitation>>

Fetches all the invitations made for the user to this conference.

hold
Link copied to clipboard
fun hold(): Completable

Hold the current conference.

inviteParticipant
Link copied to clipboard
fun inviteParticipant(callee: String, context: Context, requestedMediaTypes: List<MediaType> = listOf(MediaType.AUDIO, MediaType.VIDEO), joinOnAnswer: Boolean = true): Single<QssInvitation.State>

Invites a new participant to this conference.

join
Link copied to clipboard
fun join(context: Context, mediaTypes: List<MediaType>? = null): Completable

Allows the user to join this conference.

sendDtmf
Link copied to clipboard
fun sendDtmf(digit: Dtmf): Completable

Sends the provided digit tone to the current Conference.

transferConference
Link copied to clipboard
fun transferConference(callee: String, mediaTypes: List<MediaType>? = null): Completable

Transfer the current conference to the specified callee.

unhold
Link copied to clipboard
fun unhold(): Completable

Unhold the current conference.

updateMedia
Link copied to clipboard
fun updateMedia(context: Context, mediaTypes: List<MediaType>): Completable

Updates the media types shared by the user, overridden the current ones.