Contents

CXAction

An abstract class that declares a programmatic interface for objects that represent a telephony action.

Declaration

class CXAction

Overview

Each instance of CXAction is uniquely identified by a uuid, which is generated on initialization. An action also tracks whether it has been completed or not.

To perform one or more actions, you add them to a new CXTransaction object and pass the transaction to an instance of CXCallController using the request(_:completion:) method. After each action is performed by the telephony provider, the provider’s delegate calls either the fulfill() method, indicating that the action was successfully performed, or the fail() method, to indicate that an error occurred; both of these methods set the isComplete property of the action to true.

The CXCallAction subclass is an abstract class that represents an action associated with a CXCall object. The CallKit framework provides several concrete CXCallAction subclasses to represent actions such as answering a call and putting a call on hold.

Topics

Creating an Action

Accessing Action Attributes

Completing Actions

See Also

Call-related actions