CXCallAction
A programmatic interface for objects that represent a telephony action associated with a call object.
Declaration
class CXCallActionOverview
The CallKit framework provides the following concrete CXCallAction subclasses.
CXCallAction subclass | Description |
|---|---|
Answers an incoming call. | |
Initiates an outgoing call. | |
Ends a call. | |
Places a call on hold or removes a call from hold. | |
Groups a call with another call or removes a call from a group. | |
Mutes or unmutes a call. | |
Starts or stops call translation. | |
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.