Protocol
TalkScreenProvider
public protocol TalkScreenProvider: AnyObject
Screen provider, responsible for creating preconfigured and ready to use call configuration and call view controllers.
Relationships
Conforms To
AnyObject
Types Conforming to TalkScreenProvider
Talk
An entry point into Talk SDK for iOS.
Requirements
makeCallConfigurationViewController(for:)
func makeCallConfigurationViewController(for digitalLine: String) -> CallConfigurationScreenViewController
Returns Call Configuration view controller
Before making a call you need to make sure user has granted all required permissions. You can use this provided view controller for checking and asking for the permissions and validating all states.
Parameters
Name | Type | Description |
---|---|---|
digitalLine | String |
A nickname of a digital line for which the configuration will be displayed. |
Returns
CallConfigurationScreenViewController
, which is a CallConfigurationScreen
conforming UIViewController
with configured components and flow.
makeCallViewController(with:callDidFinishHandler:)
func makeCallViewController(with callData: CallData, callDidFinishHandler: @escaping (CallScreenViewController, CallSummary) -> Void) -> CallScreenViewController
Returns Call View Controller
Before showing that screen you should check microphone permission
, digital line
status, and recording consent
first.
You can use this provided view controller, with all required logic for making a call.
Parameters
Name | Type | Description |
---|---|---|
callData | CallData |
Data containing all required call parameters such as |
callDidFinishHandler | @escaping (CallScreenViewController, CallSummary) -> Void |
Handler called when the call is finished with |
Returns
CallScreenViewController
, which is a CallScreen
conforming UIViewController
, with all configured UI and logic for making a call.