> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# Conference (class)

[com.voximplant.android.sdk.calls](/api-reference/androidsdk3/android/sdk/calls/overview)

**Methods**

* [addVideoStream](/api-reference/androidsdk3/android/sdk/calls/conference#addvideostream)
* [hangup](/api-reference/androidsdk3/android/sdk/calls/conference#hangup)
* [join](/api-reference/androidsdk3/android/sdk/calls/conference#join)
* [muteAudio](/api-reference/androidsdk3/android/sdk/calls/conference#muteaudio)
* [removeVideoStream](/api-reference/androidsdk3/android/sdk/calls/conference#removevideostream)
* [sendInfo](/api-reference/androidsdk3/android/sdk/calls/conference#sendinfo)
* [sendMessage](/api-reference/androidsdk3/android/sdk/calls/conference#sendmessage)
* [setConferenceListener](/api-reference/androidsdk3/android/sdk/calls/conference#setconferencelistener)
* [setQualityIssueListener](/api-reference/androidsdk3/android/sdk/calls/conference#setqualityissuelistener)
* [startScreenSharing](/api-reference/androidsdk3/android/sdk/calls/conference#startscreensharing)
* [stopScreenSharing](/api-reference/androidsdk3/android/sdk/calls/conference#stopscreensharing)
* [toString](/api-reference/androidsdk3/android/sdk/calls/conference#tostring)

**Properties**

* [currentQualityIssues](/api-reference/androidsdk3/android/sdk/calls/conference#currentqualityissues)
* [duration](/api-reference/androidsdk3/android/sdk/calls/conference#duration)
* [endpointId](/api-reference/androidsdk3/android/sdk/calls/conference#endpointid)
* [endpoints](/api-reference/androidsdk3/android/sdk/calls/conference#endpoints)
* [id](/api-reference/androidsdk3/android/sdk/calls/conference#id)
* [isMuted](/api-reference/androidsdk3/android/sdk/calls/conference#ismuted)
* [localVideoStreams](/api-reference/androidsdk3/android/sdk/calls/conference#localvideostreams)
* [number](/api-reference/androidsdk3/android/sdk/calls/conference#number)
* [state](/api-reference/androidsdk3/android/sdk/calls/conference#state)

## Methods

### addVideoStream

`fun addVideoStream(videoStream: `[`LocalVideoStream`](/api-reference/androidsdk3/android/sdk/calls/localvideostream)`, callback: `[`CallCallback`](/api-reference/androidsdk3/android/sdk/calls/callcallback)`?): Unit`

Starts sending video associated with the provided local video stream.

If the operation is completed successfully, other conference participants receive [EndpointListener.onRemoteVideoStreamAdded](/api-reference/androidsdk3/android/sdk/calls/endpointlistener#onremotevideostreamadded) event.

To start sharing a device screen, use [Conference.startScreenSharing](/api-reference/androidsdk3/android/sdk/calls/conference#startscreensharing) API.

**Parameters**

| Parameter     | Type                                                                                | Requirement | Description                                    |
| ------------- | ----------------------------------------------------------------------------------- | ----------- | ---------------------------------------------- |
| `videoStream` | [`LocalVideoStream`](/api-reference/androidsdk3/android/sdk/calls/localvideostream) |             | Video stream to be sent within the conference  |
| `callback`    | [`CallCallback`](/api-reference/androidsdk3/android/sdk/calls/callcallback)`?`      |             | Object to receive the result of this operation |

**Returns:** Unit

### hangup

`fun hangup(headers: Map<String, String>?): Unit`

Hangs up the conference.

**Parameters**

| Parameter | Type                   | Requirement | Description                                                                                                 |
| --------- | ---------------------- | ----------- | ----------------------------------------------------------------------------------------------------------- |
| `headers` | `Map<String, String>?` | Optional    | Optional set of headers to be sent to Voximplant Cloud. Names should begin with "X-" to be processed by SDK |

**Returns:** Unit

### join

`fun join(): Unit`

Joins the conference.

**Annotations:** `Throws(CallException)`

**Returns:** Unit

**Throws**

[CallException](/api-reference/androidsdk3/android/sdk/calls/callexception) if the conference is already started or RECORD_AUDIO permission is not granted.

### muteAudio

`fun muteAudio(muted: Boolean): Unit`

Enables or disables audio transfer from microphone to the call. Other participants receive the [EndpointListener.onEndpointMuteStateChanged](/api-reference/androidsdk3/android/sdk/calls/endpointlistener#onendpointmutestatechanged) event.

**Parameters**

| Parameter | Type      | Requirement | Description                    |
| --------- | --------- | ----------- | ------------------------------ |
| `muted`   | `Boolean` |             | Whether to mute the microphone |

**Returns:** Unit

### removeVideoStream

`fun removeVideoStream(videoStream: `[`LocalVideoStream`](/api-reference/androidsdk3/android/sdk/calls/localvideostream)`, callback: `[`CallCallback`](/api-reference/androidsdk3/android/sdk/calls/callcallback)`?): Unit`

Stops sending video associated with the provided local video stream.

[LocalVideoStream](/api-reference/androidsdk3/android/sdk/calls/localvideostream) should be additionally closed if the operation is completed successfully, i.e. [CallCallback.onSuccess](/api-reference/androidsdk3/android/sdk/calls/callcallback#onsuccess) is called. Otherwise the video resources are not released.

If the operation is completed successfully, other conference participants receive [EndpointListener.onRemoteVideoStreamRemoved](/api-reference/androidsdk3/android/sdk/calls/endpointlistener#onremotevideostreamremoved) event.

To stop sharing a device screen, use [Conference.stopScreenSharing](/api-reference/androidsdk3/android/sdk/calls/conference#stopscreensharing) API.

**Parameters**

| Parameter     | Type                                                                                | Requirement | Description                                             |
| ------------- | ----------------------------------------------------------------------------------- | ----------- | ------------------------------------------------------- |
| `videoStream` | [`LocalVideoStream`](/api-reference/androidsdk3/android/sdk/calls/localvideostream) |             | Local video stream that should be stopped sending video |
| `callback`    | [`CallCallback`](/api-reference/androidsdk3/android/sdk/calls/callcallback)`?`      |             | Object to receive the result of this operation          |

**Returns:** Unit

### sendInfo

`fun sendInfo(mimeType: String, content: String, headers: Map<String, String>?): Unit`

Sends an INFO message within the conference.

**Parameters**

| Parameter  | Type                   | Requirement | Description                                                                                          |
| ---------- | ---------------------- | ----------- | ---------------------------------------------------------------------------------------------------- |
| `mimeType` | `String`               |             | MIME type of info                                                                                    |
| `content`  | `String`               |             | Custom string data                                                                                   |
| `headers`  | `Map<String, String>?` |             | Optional set of headers to be sent with message. Names should begin with "X-" to be processed by SDK |

**Returns:** Unit

### sendMessage

`fun sendMessage(text: String): Unit`

Sends a message within the conference.

**Parameters**

| Parameter | Type     | Requirement | Description  |
| --------- | -------- | ----------- | ------------ |
| `text`    | `String` |             | Message text |

**Returns:** Unit

### setConferenceListener

`fun setConferenceListener(listener: `[`ConferenceListener`](/api-reference/androidsdk3/android/sdk/calls/conferencelistener)`?): Unit`

Sets the listener to be notified of the conference events.

**Parameters**

| Parameter  | Type                                                                                       | Requirement | Description                                                                                      |
| ---------- | ------------------------------------------------------------------------------------------ | ----------- | ------------------------------------------------------------------------------------------------ |
| `listener` | [`ConferenceListener`](/api-reference/androidsdk3/android/sdk/calls/conferencelistener)`?` |             | Listener to be notified of the conference events. If null, a previously set listener is removed. |

**Returns:** Unit

### setQualityIssueListener

`fun setQualityIssueListener(listener: `[`QualityIssueListener`](/api-reference/androidsdk3/android/sdk/calls/qualityissuelistener)`?): Unit`

Sets [QualityIssueListener](/api-reference/androidsdk3/android/sdk/calls/qualityissuelistener) to monitor issues that affect call quality.

**Parameters**

| Parameter  | Type                                                                                           | Requirement | Description                                                                                                |
| ---------- | ---------------------------------------------------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------- |
| `listener` | [`QualityIssueListener`](/api-reference/androidsdk3/android/sdk/calls/qualityissuelistener)`?` |             | [QualityIssueListener](/api-reference/androidsdk3/android/sdk/calls/qualityissuelistener) instance or null |

**Returns:** Unit

### startScreenSharing

`fun startScreenSharing(videoStream: `[`LocalVideoStream`](/api-reference/androidsdk3/android/sdk/calls/localvideostream)`, callback: `[`CallCallback`](/api-reference/androidsdk3/android/sdk/calls/callcallback)`?): Unit`

Starts sharing a device screen in the conference call.

If the operation is completed successfully, other conference participants receive the following events:

1. [ConferenceListener.onEndpointAdded](/api-reference/androidsdk3/android/sdk/calls/conferencelistener#onendpointadded)
2. [EndpointListener.onRemoteVideoStreamAdded](/api-reference/androidsdk3/android/sdk/calls/endpointlistener#onremotevideostreamadded)

**Parameters**

| Parameter     | Type                                                                                | Requirement | Description                                                                                                                             |
| ------------- | ----------------------------------------------------------------------------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `videoStream` | [`LocalVideoStream`](/api-reference/androidsdk3/android/sdk/calls/localvideostream) |             | Local video stream created with [ScreenCaptureVideoSource](/api-reference/androidsdk3/android/sdk/calls/video/screencapturevideosource) |
| `callback`    | [`CallCallback`](/api-reference/androidsdk3/android/sdk/calls/callcallback)`?`      |             | Object to receive the result of this operation                                                                                          |

**Returns:** Unit

### stopScreenSharing

`fun stopScreenSharing(callback: `[`CallCallback`](/api-reference/androidsdk3/android/sdk/calls/callcallback)`?): Unit`

Stops sharing a device screen in the conference call.

[LocalVideoStream](/api-reference/androidsdk3/android/sdk/calls/localvideostream) with a [ScreenCaptureVideoSource](/api-reference/androidsdk3/android/sdk/calls/video/screencapturevideosource) should be additionally closed if the operation is completed successfully.

If the operation is completed successfully, other conference participants receive [ConferenceListener.onEndpointRemoved](/api-reference/androidsdk3/android/sdk/calls/conferencelistener#onendpointremoved) event.

**Parameters**

| Parameter  | Type                                                                           | Requirement | Description                                    |
| ---------- | ------------------------------------------------------------------------------ | ----------- | ---------------------------------------------- |
| `callback` | [`CallCallback`](/api-reference/androidsdk3/android/sdk/calls/callcallback)`?` |             | Object to receive the result of this operation |

**Returns:** Unit

### toString

`fun toString(): String`

**Returns:** String

## Properties

### currentQualityIssues

`val currentQualityIssues: Map<`[`QualityIssue`](/api-reference/androidsdk3/android/sdk/calls/qualityissue)`, `[`QualityIssueLevel`](/api-reference/androidsdk3/android/sdk/calls/qualityissuelevel)`>`

Gets the current status for all quality issues.

**Read-only.**

### duration

`val duration: Long`

Conference duration in milliseconds.

**Read-only.**

### endpointId

`val endpointId: String?`

Conference endpoint id of this client.

Available after [ConferenceListener.onConferenceConnected](/api-reference/androidsdk3/android/sdk/calls/conferencelistener#onconferenceconnected)

**Read-only.**

### endpoints

`val endpoints: List<`[`Endpoint`](/api-reference/androidsdk3/android/sdk/calls/endpoint)`>`

List of the endpoints associated with the conference.

**Read-only.**

### id

`val id: String`

Conference id.

**Read-only.**

### isMuted

`val isMuted: Boolean`

Whether the current conference participant's microphone is muted. You can change this state via [Conference.muteAudio](/api-reference/androidsdk3/android/sdk/calls/conference#muteaudio).

**Read-only.**

### localVideoStreams

`val localVideoStreams: List<`[`LocalVideoStream`](/api-reference/androidsdk3/android/sdk/calls/localvideostream)`>?`

Local video streams which are currently streaming in the conference.

**Read-only.**

### number

`val number: String`

Number used to make the conference call.

**Read-only.**

### state

`val state: `[`CallState`](/api-reference/androidsdk3/android/sdk/calls/callstate)

Conference state.

**Read-only.**