TalkSDK-1.0.0 Documentation Beta

Protocol Recording​Consent​Screen

@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

background​Color

var backgroundColor: UIColor?

Background color of the screen container.

title​Label

var titleLabel: UILabel!

Label which shows main title. Example: "Recording this call".

message​Label

var messageLabel: UILabel!

Label which shows description message under the title label.

start​Call​Button

var startCallButton: UIButton!

Button which calls startCallHandler handler.

cancel​Button

var cancelButton: UIButton!

Cancel Button which cancels all the flow and calls cancelHandler.

consent​Switch​View

var consentSwitchView: UIView!

The view which contains consent UISwitch and description label.

consent​Switch

var consentSwitch: UISwitch!

Switch which reflects user's RecordingConsentAnswer. The on state equals to .optIn, and off state to .optOut.

consent​Description​Label

var consentDescriptionLabel: UILabel!

Label which message regarding uiswitch. Example: "I agree to this call being recorder".

activity​Indicator​View

var activityIndicatorView: UIActivityIndicatorView!

Indicator which is shown when fetching digital line's recording consent configuration.