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

# VICallManager

Entry point to the SDK calls functionality.

@objc final class VICallManager

## Properties

### broadcast

@objc var broadcast: [VIBroadcast](/api-reference/iossdk/calls/vibroadcast)? \{ get set }

Active broadcast conference call.

### calls

@objc var calls: \[String : [VICall](/api-reference/iossdk/calls/vicall)] \{ get }

Dictionary of actual calls with their ids.

### conferences

@objc var conferences: \[String : [VIConference](/api-reference/iossdk/calls/viconference)] \{ get }

Dictionary of actual conferences with their ids.

### delegate

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

Delegate that handles incoming call events.

### shared

@objc static let shared: [VICallManager](/api-reference/iossdk/calls/vicallmanager)

Shared call manager instance

## Methods

### createBroadcast(conferenceName:settings:)

@objc func createBroadcast(conferenceName: String, settings: [VIBroadcastSettings](/api-reference/iossdk/calls/vibroadcastsettings)) -> [VIBroadcast](/api-reference/iossdk/calls/vibroadcast)?

Creates a broadcast instance to send broadcast screensharing to the conference from the application extension.

**Parameters**

**conferenceName** String

The conference name. For SIP compatibility reasons it should be a non-empty string.

**settings** [VIBroadcastSettings](/api-reference/iossdk/calls/vibroadcastsettings)

Broadcast settings with additional broadcast parameters, such as preferred video codec, custom data, extra headers, etc. Any changes to the [VIBroadcastSettings](/api-reference/iossdk/calls/vibroadcastsettings) object after calling this method have no effect.

**Return Value**

Broadcast conference instance or nil, if the client is not logged in, conference name is an empty string, a broadcast conference instance already exists. or the API has been called not from the application extension.

The broadcast conference should then be started via the [start()](/api-reference/iossdk/calls/vibroadcast#symbol-e79bde2ff2e0d337) API.

> **Note**
>
> This method exists for the Objective-C compatibility and returns nil without detailed error information. For the Swift code, use [tryCreateBroadcast(conferenceName:settings:)](/api-reference/iossdk/calls/vicallmanager#symbol-00b4cd33c75df228) which provides detailed error information.

### createCall(destination:settings:)

@objc func createCall(destination: String, settings: [VICallSettings](/api-reference/iossdk/calls/vicallsettings)) -> [VICall](/api-reference/iossdk/calls/vicall)?

Creates a new call instance.

**Parameters**

**destination** String

SIP URI, username or phone number to make call to. Actual routing is then performed by a VoxEngine scenario

**settings** [VICallSettings](/api-reference/iossdk/calls/vicallsettings)

Call settings with additional call parameters, such as the preferred video codec, custom data, extra headers, etc. Any changes to the [VICallSettings](/api-reference/iossdk/calls/vicallsettings) object after calling this method have no effect.

**Return Value**

Call instance or nil, if the client is not logged in, destination is an empty string, or the API has been called from the application extension.

The call should be started via the [start()](/api-reference/iossdk/calls/vicall#symbol-816f51853436756c) method.

> **Note**
>
> This method exists for the Objective-C compatibility and returns nil without detailed error information. For the Swift code, use [tryCreateCall(destination:settings:)](/api-reference/iossdk/calls/vicallmanager#symbol-47a9e381706431d4) which provides detailed error information.

### createConference(conferenceName:settings:)

@objc func createConference(conferenceName: String, settings: [VIConferenceSettings](/api-reference/iossdk/calls/viconferencesettings)) -> [VIConference](/api-reference/iossdk/calls/viconference)?

Creates a conference instance.

**Parameters**

**conferenceName** String

The conference name. For SIP compatibility reasons it should be a non-empty string.

**settings** [VIConferenceSettings](/api-reference/iossdk/calls/viconferencesettings)

Conference settings with additional conference parameters, such as preferred video codec, custom data, extra headers, etc. Any changes to the [VIConferenceSettings](/api-reference/iossdk/calls/viconferencesettings) object after calling this method have no effect.

**Return Value**

Conference instance or nil, if the client is not logged in, conference name is an empty string, or the API has been called from the application extension.

The conference should be than started via the [join()](/api-reference/iossdk/calls/viconference#symbol-ddd13ab25530a9c5) method.

> **Note**
>
> This method exists for the Objective-C compatibility and returns nil without detailed error information. For the Swift code, use [tryCreateConference(conferenceName:settings:)](/api-reference/iossdk/calls/vicallmanager#symbol-8fac17ee8fd6aaf3) which provides detailed error information.

### tryCreateBroadcast(conferenceName:settings:)

func tryCreateBroadcast(\
    conferenceName: String,\
    settings: [VIBroadcastSettings](/api-reference/iossdk/calls/vibroadcastsettings)\
) throws([VICreateBroadcastError](/api-reference/iossdk/calls/vicreatebroadcasterror)) -> [VIBroadcast](/api-reference/iossdk/calls/vibroadcast)

Creates a broadcast instance to send broadcast screensharing to the conference from the application extension.

**Parameters**

**conferenceName** String

The conference name. For SIP compatibility reasons it should be a non-empty string.

**settings** [VIBroadcastSettings](/api-reference/iossdk/calls/vibroadcastsettings)

Broadcast settings with additional broadcast parameters, such as preferred video codec, custom data, extra headers, etc. Any changes to the [VIBroadcastSettings](/api-reference/iossdk/calls/vibroadcastsettings) object after calling this method have no effect.

**Return Value**

Broadcast conference instance

The broadcast conference should then be started via the [start()](/api-reference/iossdk/calls/vibroadcast#symbol-e79bde2ff2e0d337) API.

**Throws**

[VICreateBroadcastError](/api-reference/iossdk/calls/vicreatebroadcasterror) if broadcast creation fails

### tryCreateCall(destination:settings:)

func tryCreateCall(\
    destination: String,\
    settings: [VICallSettings](/api-reference/iossdk/calls/vicallsettings)\
) throws([VICreateCallError](/api-reference/iossdk/calls/vicreatecallerror)) -> [VICall](/api-reference/iossdk/calls/vicall)

Creates a new call instance.

**Parameters**

**destination** String

SIP URI, username or phone number to make call to. Actual routing is then performed by a VoxEngine scenario

**settings** [VICallSettings](/api-reference/iossdk/calls/vicallsettings)

Call settings with additional call parameters, such as the preferred video codec, custom data, extra headers, etc. Any changes to the [VICallSettings](/api-reference/iossdk/calls/vicallsettings) object after calling this method have no effect.

**Return Value**

Call instance

The call should be started via the [start()](/api-reference/iossdk/calls/vicall#symbol-816f51853436756c) method.

**Throws**

[VICreateCallError](/api-reference/iossdk/calls/vicreatecallerror) if call creation fails

### tryCreateConference(conferenceName:settings:)

func tryCreateConference(\
    conferenceName: String,\
    settings: [VIConferenceSettings](/api-reference/iossdk/calls/viconferencesettings)\
) throws([VICreateConferenceError](/api-reference/iossdk/calls/vicreateconferenceerror)) -> [VIConference](/api-reference/iossdk/calls/viconference)

Creates a conference instance.

**Parameters**

**conferenceName** String

The conference name. For SIP compatibility reasons it should be a non-empty string.

**settings** [VIConferenceSettings](/api-reference/iossdk/calls/viconferencesettings)

Conference settings with additional conference parameters, such as preferred video codec, custom data, extra headers, etc. Any changes to the [VIConferenceSettings](/api-reference/iossdk/calls/viconferencesettings) object after calling this method have no effect.

**Return Value**

Conference instance

The conference should be than started via the [join()](/api-reference/iossdk/calls/viconference#symbol-ddd13ab25530a9c5) method.

**Throws**

[VICreateConferenceError](/api-reference/iossdk/calls/vicreateconferenceerror) if conference creation fails

## Relationships

**Inherits From:** NSObject

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