CXProviderConfiguration is the configuration object used to describe your app’s calling behavior and appearance to the iOS telephony system.
It controls:
Before creating a CXProvider, your app must define:
how it wants CallKit to behave.
That configuration is passed into:
CXProvider(configuration: configuration)
import CallKit
let configuration = CXProviderConfiguration()
This object is then customized before creating the provider.
let configuration = CXProviderConfiguration()
configuration.supportsVideo = false
configuration.maximumCallGroups = 1
configuration.maximumCallsPerCallGroup = 1
configuration.supportedHandleTypes = [.phoneNumber]
let provider = CXProvider(configuration: configuration)