Protocol
CallConfigurationScreen
@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.
Relationships
Types Conforming to CallConfigurationScreen
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
microphoneScreen
var microphoneScreen: MicrophonePermissionScreen
Container for UI elements shown as Microphone permission screen. Enables customization of UI controls such as font, text colors, etc.
recordingConsentScreen
var recordingConsentScreen: RecordingConsentScreen
Container for UI elements shown as Recording Consent screen. Enables customization of UI controls such as font, text colors, etc.
cancelHandler
var cancelHandler: CancelRequestHandler?
Handler that is called when end user cancels the configuration at any time.
startCallHandler
var startCallHandler: StartCallHandler?
Handler called after completing the configuration, it will be called with user's RecordingConsentAnswer
.