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

# VIBroadcastDelegate

Delegate that may be used to handle broadcast screen sharing events.

@objc protocol VIBroadcastDelegate

## Methods

### broadcast(\_:didConnectWithHeaders:)

@objc func broadcast(\_ broadcast: [VIBroadcast](/api-reference/iossdk/calls/vibroadcast), didConnectWithHeaders headers: \[String : String]?)

Triggered after a broadcast has been successfully connected to a conference.

**Parameters**

**broadcast** [VIBroadcast](/api-reference/iossdk/calls/vibroadcast)

Broadcast instance

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

Optional headers passed with the event

### broadcast(\_:didDisconnectWithReason:headers:)

@objc func broadcast(\
    \_ broadcast: [VIBroadcast](/api-reference/iossdk/calls/vibroadcast),\
    didDisconnectWithReason reason: [VIBroadcastDisconnectReason](/api-reference/iossdk/calls/vibroadcastdisconnectreason),\
    headers: \[String : String]?\
)

Triggered after a broadcast has been disconnected.

**Parameters**

**broadcast** [VIBroadcast](/api-reference/iossdk/calls/vibroadcast)

Broadcast instance

**reason** [VIBroadcastDisconnectReason](/api-reference/iossdk/calls/vibroadcastdisconnectreason)

Reason that the broadcast ended

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

Optional headers passed with the event

### broadcast(\_:didFailWithError:headers:)

@objc func broadcast(\
    \_ broadcast: [VIBroadcast](/api-reference/iossdk/calls/vibroadcast),\
    didFailWithError error: [VICallConnectionError](/api-reference/iossdk/calls/vicallconnectionerror),\
    headers: \[String : String]?\
)

Triggered if a broadcast failed.

**Parameters**

**broadcast** [VIBroadcast](/api-reference/iossdk/calls/vibroadcast)

Broadcast instance

**error** [VICallConnectionError](/api-reference/iossdk/calls/vicallconnectionerror)

Error object with code and description

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

Optional headers passed with the event

### broadcastDidReconnect(\_:)

@objc optional func broadcastDidReconnect(\_ broadcast: [VIBroadcast](/api-reference/iossdk/calls/vibroadcast))

Triggered if the connection to the Voximplant Cloud is restored and media stream are active.

**Parameters**

**broadcast** [VIBroadcast](/api-reference/iossdk/calls/vibroadcast)

Broadcast instance

### broadcastDidStartReconnecting(\_:)

@objc optional func broadcastDidStartReconnecting(\_ broadcast: [VIBroadcast](/api-reference/iossdk/calls/vibroadcast))

Triggered if the connection to the Voximplant Cloud is lost due to a network issue and media streams may be interrupted.

**Parameters**

**broadcast** [VIBroadcast](/api-reference/iossdk/calls/vibroadcast)

Broadcast instance