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

# VIConference

Class that represents a conference and provides the API to manage it.

@objc class VIConference

## Properties

### delegate

@objc weak var delegate: [VIConferenceDelegate](/api-reference/iossdk/calls/viconferencedelegate)?

Conference delegate.

### duration

@objc var duration: TimeInterval \{ get }

Conference duration in seconds.

### endpointId

@objc var endpointId: String? \{ get }

Conference endpoint id of this client.

Available after [conference(\_:didConnectWithHeaders:)](/api-reference/iossdk/calls/viconferencedelegate#symbol-6b847368f6548c7f).

### endpoints

@objc var endpoints: \[[VIEndpoint](/api-reference/iossdk/calls/viendpoint)] \{ get }

Array of the endpoints associated with the conference.

### id

@objc var id: String \{ get }

Conference id.

### isBroadcasting

@objc var isBroadcasting: Bool \{ get }

Whether broadcast sharing is active for the conference.

### isMuted

@objc var isMuted: Bool \{ get set }

Whether the audio is muted.

### localVideoStreams

@objc var localVideoStreams: \[[VILocalVideoStream](/api-reference/iossdk/calls/vilocalvideostream)] \{ get }

Array of the local video streams that are currently being sent.

This array can contain the local video stream instance before a connection to a conference has been established.

### state

@objc var state: [VICallState](/api-reference/iossdk/calls/vicallstate) \{ get }

Conference state.

## Methods

### hangup(withHeaders:)

@objc func hangup(withHeaders headers: \[String : String]? = nil)

Terminates the conference on the current user.

**Parameters**

**headers** \[String : String]?

Optional set of headers to be sent. Names should begin with “X-” to be processed by the SDK. The default value is nil.

### join()

@objc func join()

Joins a conference.

### muteAudio(\_:completion:)

@objc func muteAudio(\_ mute: Bool, completion: @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void)

Mutes or unmutes the audio in the conference.

**Parameters**

**mute** Bool

Whether the audio should be muted

**completion** @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes a [VICallError](/api-reference/iossdk/calls/vicallerror) object if the operation has failed.

Other conference endpoints receive [endpoint(\_:didChangeMuteStatus:)](/api-reference/iossdk/calls/viendpointdelegate#symbol-7806c21f6cb0237c) event.

### replaceSendingVideo(with:completion:)

@objc func replaceSendingVideo(\
    with stream: [VILocalVideoStream](/api-reference/iossdk/calls/vilocalvideostream),\
    completion: @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void\
)

Replaces the local video stream that is currently sending in the conference with another local video stream.

**Parameters**

**stream** [VILocalVideoStream](/api-reference/iossdk/calls/vilocalvideostream)

New local video stream.

**completion** @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the [VICallError](/api-reference/iossdk/calls/vicallerror) object if the operation has failed.

### sendDTMF(\_:completion:)

@objc func sendDTMF(\_ dtmf: String, completion: @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void)

Sends DTMF(s) within the conference.

**Parameters**

**dtmf** String

DTMF(s)

**completion** @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the [VICallError](/api-reference/iossdk/calls/vicallerror) object if the operation has failed.

### sendInfo(\_:mimeType:headers:)

@objc func sendInfo(\_ body: String, mimeType: String, headers: \[String : String]? = nil)

Sends an INFO message within the conference.

**Parameters**

**body** String

Custom string data

**mimeType** String

MIME type of info

**headers** \[String : String]?

Optional set of headers to be sent with the message. Names should begin with “X-” to be processed by the SDK. The default value is nil.

### sendMessage(\_:)

@objc func sendMessage(\_ message: String)

Sends a message within the conference.

**Parameters**

**message** String

Message text

Implemented atop of SIP INFO for communication between the call endpoint and the Voximplant Cloud.

### startInAppScreensharing(with:completion:)

@objc func startInAppScreensharing(\
    with stream: [VILocalVideoStream](/api-reference/iossdk/calls/vilocalvideostream),\
    completion: @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void\
)

Starts sending in-app screen sharing to the conference.

**Parameters**

**stream** [VILocalVideoStream](/api-reference/iossdk/calls/vilocalvideostream)

Local video stream with [VIInAppSharingVideoSource](/api-reference/iossdk/calls/viinappsharingvideosource)

**completion** @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the [VICallError](/api-reference/iossdk/calls/vicallerror) object if the operation has failed.

Other conference participants receive  the[conference(\_:didAddEndpoint:)](/api-reference/iossdk/calls/viconferencedelegate#symbol-d081a1fa25984624) event.

### startSendingVideo(with:completion:)

@objc func startSendingVideo(\
    with stream: [VILocalVideoStream](/api-reference/iossdk/calls/vilocalvideostream),\
    completion: @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void\
)

Starts sending video to the conference.

**Parameters**

**stream** [VILocalVideoStream](/api-reference/iossdk/calls/vilocalvideostream)

Local video stream with [VICameraVideoSource](/api-reference/iossdk/calls/vicameravideosource) or [VICustomVideoSource](/api-reference/iossdk/calls/vicustomvideosource).

**completion** @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the [VICallError](/api-reference/iossdk/calls/vicallerror) object if the operation has failed.

### stopInAppScreensharing(completion:)

@objc func stopInAppScreensharing(completion: @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void)

Stops sending in-app screen sharing in the conference.

**Parameters**

**completion** @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the [VICallError](/api-reference/iossdk/calls/vicallerror) object if the operation has failed.

Other conference participants receive the[conference(\_:didRemoveEndpoint:)](/api-reference/iossdk/calls/viconferencedelegate#symbol-fe6d7d58aae0e6e0) event.

### stopSendingVideo(completion:)

@objc func stopSendingVideo(completion: @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void)

Stops sending video in the conference.

**Parameters**

**completion** @escaping ([VICallError](/api-reference/iossdk/calls/vicallerror)?) -> Void

Completion handler to call when the operation is complete. This handler is executed on the delegate queue. The SDK passes the [VICallError](/api-reference/iossdk/calls/vicallerror) object if the operation has failed.

## Relationships

**Inherits From:** NSObject

**Conforms To:** ObjectiveC.NSObjectProtocol, Swift.CVarArg, Swift.CustomDebugStringConvertible, Swift.CustomStringConvertible, Swift.Equatable, Swift.Hashable