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

# CallSettings (class)

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

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

**Constructors**

* [CallSettings](/api-reference/androidsdk3/android/sdk/calls/callsettings#ctor)

**Methods**

* [toString](/api-reference/androidsdk3/android/sdk/calls/callsettings#tostring)

**Properties**

* [customData](/api-reference/androidsdk3/android/sdk/calls/callsettings#customdata)
* [extraHeaders](/api-reference/androidsdk3/android/sdk/calls/callsettings#extraheaders)
* [localVideoStream](/api-reference/androidsdk3/android/sdk/calls/callsettings#localvideostream)
* [preferredVideoCodec](/api-reference/androidsdk3/android/sdk/calls/callsettings#preferredvideocodec)
* [receiveVideo](/api-reference/androidsdk3/android/sdk/calls/callsettings#receivevideo)
* [statsCollectionInterval](/api-reference/androidsdk3/android/sdk/calls/callsettings#statscollectioninterval)

## Constructors

### CallSettings

`CallSettings()`

## Methods

### toString

`fun toString(): String`

**Returns:** String

## Properties

### customData

`var customData: String?`

Custom string associated with the 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/managing_history#getcallhistory) via HTTP API.

Maximum size is 200 bytes.

Use the [Call.sendMessage](/api-reference/androidsdk3/android/sdk/calls/call#sendmessage) 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/managing_scenarios#startscenarios) on your backend.

### extraHeaders

`var extraHeaders: Map<String, String>?`

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

### localVideoStream

`var localVideoStream: `[`LocalVideoStream`](/api-reference/androidsdk3/android/sdk/calls/localvideostream)`?`

### preferredVideoCodec

`var preferredVideoCodec: `[`VideoCodec`](/api-reference/androidsdk3/android/sdk/calls/videocodec)

Preferred video codec for a particular call that this CallSettings are applied to. [VideoCodec.Auto](/api-reference/androidsdk3/android/sdk/calls/videocodec#auto) by default.

### receiveVideo

`var receiveVideo: Boolean`

### statsCollectionInterval

`var statsCollectionInterval: Int`

Call statistics collection interval in milliseconds. Default 5000. should be multiple of 500.