Definition

CXProviderConfiguration is the configuration object used to describe your app’s calling behavior and appearance to the iOS telephony system.

It controls:


Core Concept

Before creating a CXProvider, your app must define:

how it wants CallKit to behave.

That configuration is passed into:

CXProvider(configuration: configuration)

Creating a Configuration

import CallKit

let configuration = CXProviderConfiguration()

This object is then customized before creating the provider.


Basic Example

let configuration = CXProviderConfiguration()

configuration.supportsVideo = false
configuration.maximumCallGroups = 1
configuration.maximumCallsPerCallGroup = 1
configuration.supportedHandleTypes = [.phoneNumber]

let provider = CXProvider(configuration: configuration)