TalkSDK-1.0.0 Documentation Beta

Protocol Call​Configuration​Screen

@objc public protocol CallConfigurationScreen

A screen presented before making a call, used to ask the user about necessary permissions that need to be granted.

This screen internally manages all required checks: microphone permission access, digital line recording consent configuration etc., and presents the appropriate UI: Microphone screen view is presented if microphone permission is not granted Recording Consent Screen view is presented only if Recording Consent configuration for the provided Digital Line is set to optIn or optOut. If during fetching of the configuration error occurs, the Error View will be shown.

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

This screen will not be dismissed automatically. You need to provide the functionality on cancelHandler and startCallHandler handlers.

CallConfigurationScreen CallConfigurationScreen CallConfigurationViewController CallConfigurationViewController CallConfigurationViewController->CallConfigurationScreen

Types Conforming to Call​Configuration​Screen

CallConfigurationViewController

A view controller that is displayed before making a call, used to ask the user about necessary permissions that need to be granted.

Requirements

microphone​Screen

var microphoneScreen: MicrophonePermissionScreen

Container for UI elements shown as Microphone permission screen. Enables customization of UI controls such as font, text colors, etc.

recording​Consent​Screen

var recordingConsentScreen: RecordingConsentScreen

Container for UI elements shown as Recording Consent screen. Enables customization of UI controls such as font, text colors, etc.

cancel​Handler

var cancelHandler: CancelRequestHandler?

Handler that is called when end user cancels the configuration at any time.

start​Call​Handler

var startCallHandler: StartCallHandler?

Handler called after completing the configuration, it will be called with user's RecordingConsentAnswer.