Class

CXAction

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

Declaration

@interface CXAction : NSObject

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 requestTransaction: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 complete property of the action to YES.

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

- init

Initializes a new telephony action.

Accessing Action Attributes

UUID

The unique identifier for the action.

complete

A Boolean value that indicates whether the action has been performed by the provider.

timeoutDate

The time after which the action cannot be completed.

Completing Actions

- fulfill

Reports the successful execution of the action.

- fail

Reports the failed execution of the action.

Relationships

Inherits From

See Also

Call-Related Actions

CXCallAction

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

CXEndCallAction

An encapsulation of the act of ending a call.

CXPlayDTMFCallAction

An encapsulation of the act of playing a dual tone multifrequency (DTMF) sequence.

CXSetGroupCallAction

An encapsulation of the act of grouping or ungrouping calls.

CXSetHeldCallAction

An encapsulation of the act of placing a call on hold or removing a call from hold.

CXSetMutedCallAction

An encapsulation of the act of muting or unmuting a call.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software