<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CallKit",
  "identifier" : "/documentation/CallKit/CXAction",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CallKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CXAction"
  },
  "title" : "CXAction"
}
-->

# CXAction

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

```
class CXAction
```

## Overview

Each instance of [`CXAction`](/documentation/CallKit/CXAction) is uniquely identified by a [`uuid`](/documentation/CallKit/CXAction/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`](/documentation/CallKit/CXTransaction) object and pass the transaction to an instance of [`CXCallController`](/documentation/CallKit/CXCallController) using the [`request(_:completion:)`](/documentation/CallKit/CXCallController/request(_:completion:)) method. After each action is performed by the telephony provider, the provider’s delegate calls either the [`fulfill()`](/documentation/CallKit/CXAction/fulfill()) method, indicating that the action was successfully performed, or the [`fail()`](/documentation/CallKit/CXAction/fail()) method, to indicate that an error occurred; both of these methods set the [`isComplete`](/documentation/CallKit/CXAction/isComplete) property of the action to <doc://com.apple.documentation/documentation/Swift/true>.

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

## Topics

### Creating an Action

[`-  init`](/documentation/CallKit/CXAction/init())

Initializes a new telephony action.

[`-  initWithCoder:`](/documentation/CallKit/CXAction/init(coder:))

Creates a new telephony action with data in an unarchiver.

### Accessing Action Attributes

[`UUID`](/documentation/CallKit/CXAction/uuid)

The unique identifier for the action.

[`complete`](/documentation/CallKit/CXAction/isComplete)

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

[`timeoutDate`](/documentation/CallKit/CXAction/timeoutDate)

The time after which the action cannot be completed.

### Completing Actions

[`-  fulfill`](/documentation/CallKit/CXAction/fulfill())

Reports the successful execution of the action.

[`-  fail`](/documentation/CallKit/CXAction/fail())

Reports the failed execution of the action.

## Relationships

### Conforms To

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`Equatable`](/documentation/Swift/Equatable)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherited By

[`CXCallAction`](/documentation/CallKit/CXCallAction)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)