VICallManager
VoximplantCalls · iOS SDK v3
Entry point to the SDK calls functionality.
@objc final class VICallManager
Properties
broadcast
@objc var broadcast: VIBroadcast? { get set }
Active broadcast conference call.
calls
@objc var calls: [String : VICall] { get }
Dictionary of actual calls with their ids.
conferences
@objc var conferences: [String : VIConference] { get }
Dictionary of actual conferences with their ids.
delegate
@objc weak var delegate: VICallManagerDelegate?
Delegate that handles incoming call events.
shared
@objc static let shared: VICallManager
Shared call manager instance
Methods
createBroadcast(conferenceName:settings:)
@objc func createBroadcast(conferenceName: String, settings: VIBroadcastSettings) -> 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
Broadcast settings with additional broadcast parameters, such as preferred video codec, custom data, extra headers, etc. Any changes to the 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.
This method exists for the Objective-C compatibility and returns nil without detailed error information. For the Swift code, use tryCreateBroadcast(conferenceName:settings:) which provides detailed error information.
createCall(destination:settings:)
@objc func createCall(destination: String, settings: VICallSettings) -> 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
Call settings with additional call parameters, such as the preferred video codec, custom data, extra headers, etc. Any changes to the 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() method.
This method exists for the Objective-C compatibility and returns nil without detailed error information. For the Swift code, use tryCreateCall(destination:settings:) which provides detailed error information.
createConference(conferenceName:settings:)
@objc func createConference(conferenceName: String, settings: VIConferenceSettings) -> VIConference?
Creates a conference instance.
Parameters
conferenceName String
The conference name. For SIP compatibility reasons it should be a non-empty string.
settings VIConferenceSettings
Conference settings with additional conference parameters, such as preferred video codec, custom data, extra headers, etc. Any changes to the 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() method.
This method exists for the Objective-C compatibility and returns nil without detailed error information. For the Swift code, use tryCreateConference(conferenceName:settings:) which provides detailed error information.
tryCreateBroadcast(conferenceName:settings:)
func tryCreateBroadcast(
conferenceName: String,
settings: VIBroadcastSettings
) throws(VICreateBroadcastError) -> 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
Broadcast settings with additional broadcast parameters, such as preferred video codec, custom data, extra headers, etc. Any changes to the 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.
Throws
VICreateBroadcastError if broadcast creation fails
tryCreateCall(destination:settings:)
func tryCreateCall(
destination: String,
settings: VICallSettings
) throws(VICreateCallError) -> 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
Call settings with additional call parameters, such as the preferred video codec, custom data, extra headers, etc. Any changes to the VICallSettings object after calling this method have no effect.
Return Value
Call instance
The call should be started via the start() method.
Throws
VICreateCallError if call creation fails
tryCreateConference(conferenceName:settings:)
func tryCreateConference(
conferenceName: String,
settings: VIConferenceSettings
) throws(VICreateConferenceError) -> VIConference
Creates a conference instance.
Parameters
conferenceName String
The conference name. For SIP compatibility reasons it should be a non-empty string.
settings VIConferenceSettings
Conference settings with additional conference parameters, such as preferred video codec, custom data, extra headers, etc. Any changes to the VIConferenceSettings object after calling this method have no effect.
Return Value
Conference instance
The conference should be than started via the join() method.
Throws
VICreateConferenceError if conference creation fails
Relationships
Inherits From: NSObject
Conforms To: ObjectiveC.NSObjectProtocol, Swift.CVarArg, Swift.CustomDebugStringConvertible, Swift.CustomStringConvertible, Swift.Equatable, Swift.Hashable