TalkSDK-1.0.0 Documentation Beta

Protocol Talk​Core​Provider

public protocol TalkCoreProvider: AnyObject

Main Talk provider, responsible for the core calling API functionality.

TalkCoreProvider TalkCoreProvider AnyObject AnyObject TalkCoreProvider->AnyObject Talk Talk Talk->TalkCoreProvider

Conforms To

AnyObject

Types Conforming to Talk​Core​Provider

Talk

An entry point into Talk SDK for iOS.

Requirements

line​Status(digital​Line:​completion:​)

func lineStatus(digitalLine: DigitalLine, completion: @escaping (LineStatusResult) -> Void)

Provides asynchronous information about the status of a digital line associated with digitalLine name, as defined in Talk Settings.

For more information about line status, see the LineStatus documentation.

Parameters

digital​Line Digital​Line

name of digital line configured by the admin in Talk Settings

completion @escaping (Line​Status​Result) -> Void

return Result with LineStatus for success status or LineStatusError for failure.

call(call​Data:​status​Change​Handler:​)

func call(callData: CallData, statusChangeHandler: @escaping StatusChangeHandler) -> TalkCall

Initializes a call for provided call data.

After call is initialized or fails to connect a handler is called with matching result.

Parameters

call​Data Call​Data

Details for the call which contain digitalLine and recordingConsentAnswer

status​Change​Handler @escaping Status​Change​Handler

will be called on every call status change

Returns

TalkCall object representing the call, enabling to control it's various parameters as: DeviceOutput, mute or disconnect.