Skip to navigation

VIConferenceDelegate

VoximplantCalls · iOS SDK v3

View as Markdown

Delegate that may be used to handle conference events.

@objc protocol VIConferenceDelegate

Methods

conference(_:didAddEndpoint:)

@objc func conference(_ conference: VIConference, didAddEndpoint endpoint: VIEndpoint)

Triggered after an endpoint is added to a conference.

Parameters

conference VIConference

Conference instance

endpoint VIEndpoint

Endpoint that has been added to the conference

conference(_:didConnectWithHeaders:)

@objc func conference(_ conference: VIConference, didConnectWithHeaders headers: [String : String]?)

Triggered after a conference has been successfully connected.

Parameters

conference VIConference

Conference instance

headers [String : String]?

Optional headers passed with the event

conference(_:didDetectLocalVoiceActivityChange:)

@objc optional func conference(
    _ conference: VIConference,
    didDetectLocalVoiceActivityChange voiceActivity: Bool
)

Triggered when a voice activity is detected from the current participant.

Parameters

conference VIConference

Conference instance

voiceActivity Bool

Whether the voice is detected

conference(_:didDisconnectWithReason:headers:)

@objc func conference(
    _ conference: VIConference,
    didDisconnectWithReason reason: VIConferenceDisconnectReason,
    headers: [String : String]?
)

Triggered after a conference has been disconnected.

Parameters

conference VIConference

Conference instance

reason VIConferenceDisconnectReason

Reason that the conference ended with

headers [String : String]?

Optional headers passed with the event

conference(_:didFailWithError:headers:)

@objc func conference(
    _ conference: VIConference,
    didFailWithError error: VICallConnectionError,
    headers: [String : String]?
)

Triggered if a conference failed.

Parameters

conference VIConference

Conference instance

error VICallConnectionError

Error object with code and description

headers [String : String]?

Optional headers passed with the event

conference(_:didReceiveInfo:type:headers:)

@objc optional func conference(
    _ conference: VIConference,
    didReceiveInfo body: String,
    type: String,
    headers: [String : String]?
)

Triggered when an INFO message is received within the call.

Parameters

conference VIConference

Conference instance

body String

Body of INFO message

type String

MIME type of INFO message

headers [String : String]?

Optional headers passed with the event

conference(_:didReceiveMessage:headers:)

@objc optional func conference(
    _ conference: VIConference,
    didReceiveMessage message: String,
    headers: [String : String]?
)

Triggered when a message is received within a conference.

Parameters

conference VIConference

Conference instance

message String

Content of the message

headers [String : String]?

Optional headers passed with the event

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

conference(_:didReceiveStatistics:)

@objc optional func conference(
    _ conference: VIConference,
    didReceiveStatistics stats: VIConferenceStats
)

Triggered when conference statistics are available for a conference.

Parameters

conference VIConference

Conference instance

stats VIConferenceStats

Conference statistics

conference(_:didRemoveEndpoint:)

@objc func conference(_ conference: VIConference, didRemoveEndpoint endpoint: VIEndpoint)

Triggered after the endpoint is removed from a conference.

Parameters

conference VIConference

Conference instance

endpoint VIEndpoint

Endpoint that has been removed from the a conference

conferenceDidReconnect(_:)

@objc optional func conferenceDidReconnect(_ conference: VIConference)

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

Parameters

conference VIConference

Conference instance

conferenceDidStartReconnecting(_:)

@objc optional func conferenceDidStartReconnecting(_ conference: VIConference)

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

Parameters

conference VIConference

Conference instance

Once the connection to the Voximplant Cloud is restored and the media streams are active, the conferenceDidReconnect(_:) event is invoked.

Until the conferenceDidReconnect(_:) event is invoked, the following API calls fail with VICallErrorType.invalidCallState error: