Contents

CXCallAction

A programmatic interface for objects that represent a telephony action associated with a call object.

Declaration

class CXCallAction

Overview

The CallKit framework provides the following concrete CXCallAction subclasses.

CXCallAction subclass

Description

Cxanswercallaction

Answers an incoming call.

Cxstartcallaction

Initiates an outgoing call.

Cxendcallaction

Ends a call.

Cxsetheldcallaction

Places a call on hold or removes a call from hold.

Cxsetgroupcallaction

Groups a call with another call or removes a call from a group.

Cxsetmutedcallaction

Mutes or unmutes a call.

Cxsettranslatingcallaction

Starts or stops call translation.

Cxplaydtmfcallaction

Plays a DTMF (dual tone multifrequency) tone sequence on a call.

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.

Topics

Creating New Call Actions

Accessing Call Action Attributes

Initializers

See Also

Call-related actions