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

# VICallSettings

Call settings with additional call parameters, such as the preferred video codec, custom data, extra headers, etc.

@objc class VICallSettings

## Initializers

### init()

override init()

Creates a call settings object with default values.

### init(localVideoStream:receiveVideo:customData:extraHeaders:statsCollectionInterval:preferredVideoCodec:callKitSupport:)

@objc init(\
    localVideoStream: [VILocalVideoStream](/api-reference/iossdk/calls/vilocalvideostream)? = nil,\
    receiveVideo: Bool = false,\
    customData: String? = nil,\
    extraHeaders: \[String : String]? = nil,\
    statsCollectionInterval: TimeInterval = 0,\
    preferredVideoCodec: [VIVideoCodec](/api-reference/iossdk/calls/vivideocodec) = .auto,\
    callKitSupport: Bool = false\
)

Creates the call settings.

## Properties

### callKitSupport

@objc var callKitSupport: Bool

Whether the CallKit integration is enabled for a call.

The default value is false.

Available only for iOS.

> **Warning**
>
> Correct CallKit integration requires using this property alongside the VIAudioManager/callKitProviderDidActivateAudioSession() and VIAudioManager/callKitProviderDidDeactivateAudioSession() methods.

### customData

@objc var customData: String?

Custom string associated with a call session.

It can be passed to the cloud to be obtained from the [CallAlerting](https://voximplant.com/docs/references/voxengine/appevents#callalerting) event or [Call History](https://voximplant.com/docs/references/httpapi/history#getcallhistory) via Management API.

Maximum size is 200 bytes. Use the [sendMessage(\_:)](/api-reference/iossdk/calls/vicall#symbol-00b3ae0590e5710f) method to pass a string over the limit; in order to pass a large data use [media_session_access_url](https://voximplant.com/docs/references/httpapi/scenarios#startscenarios) on your backend.

### description

override var description: String \{ get }

Settings description.

### extraHeaders

@objc var extraHeaders: \[String : String]?

Optional set of headers to be sent to the Voximplant cloud. Names should begin with “X-” to be processed by SDK.

### localVideoStream

@objc var localVideoStream: [VILocalVideoStream](/api-reference/iossdk/calls/vilocalvideostream)?

Local video stream to be sent to a call. Should be nil for audio calls.

### preferredVideoCodec

@objc var preferredVideoCodec: [VIVideoCodec](/api-reference/iossdk/calls/vivideocodec)

Preferred video codec for a particular call that these settings are applied to. The default codec is [VIVideoCodec.auto](/api-reference/iossdk/calls/vivideocodec#symbol-5b8401b82eef932d).

### receiveVideo

@objc var receiveVideo: Bool

Whether video receiving is enabled in a call.

The default value is false.

If the call is started without video ([localVideoStream](/api-reference/iossdk/calls/vicallsettings#symbol-6fd7a38891511931) is nil and [receiveVideo](/api-reference/iossdk/calls/vicallsettings#symbol-45621f12c82c3938) is false) and the user enables video in an active call via the [startSendingVideo(with:completion:)](/api-reference/iossdk/calls/vicall#symbol-08c162da5f755f17) API, enables video receiving.

### statsCollectionInterval

@objc var statsCollectionInterval: TimeInterval

Call statistics collection interval in seconds.

The default value is 0, meaning that the statistics collection feature is disabled.

The interval value should be multiple of 0.5, otherwise the provided value is rounded to a less value that is multiple of 0.5.

## Relationships

**Inherits From:** NSObject

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