Protocol
RecordingConsentScreen
@objc public protocol RecordingConsentScreen
Screen handling recording consent.
The screen contains all UI elements of the view.
It is shown only when the Recording Consent
received from lineStatus
has a value of optIn
or optOut
. Otherwise no user's answer is required and the screen is not presented.
This view has customizable font, text colors, background color, etc.
Requirements
backgroundColor
var backgroundColor: UIColor?
Background color of the screen container.
titleLabel
var titleLabel: UILabel!
Label which shows main title. Example: "Recording this call".
messageLabel
var messageLabel: UILabel!
Label which shows description message under the title label.
startCallButton
var startCallButton: UIButton!
Button which calls startCallHandler
handler.
cancelButton
var cancelButton: UIButton!
Cancel Button which cancels all the flow and calls cancelHandler
.
consentSwitchView
var consentSwitchView: UIView!
The view which contains consent UISwitch
and description label.
consentSwitch
var consentSwitch: UISwitch!
Switch which reflects user's RecordingConsentAnswer
. The on
state equals to .optIn
, and off
state to .optOut
.
consentDescriptionLabel
var consentDescriptionLabel: UILabel!
Label which message regarding uiswitch. Example: "I agree to this call being recorder".
activityIndicatorView
var activityIndicatorView: UIActivityIndicatorView!
Indicator which is shown when fetching digital line's recording consent configuration.