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

# CXCallDirectoryExtensionContext

A programmatic interface for adding identification and blocking entries to a Call Directory app extension.

```
class CXCallDirectoryExtensionContext
```

## Overview

The system doesn’t initialize [`CXCallDirectoryExtensionContext`](/documentation/CallKit/CXCallDirectoryExtensionContext) objects directly, but instead passes them as arguments to the [`CXCallDirectoryProvider`](/documentation/CallKit/CXCallDirectoryProvider) instance method [`beginRequest(with:)`](/documentation/CallKit/CXCallDirectoryProvider/beginRequest(with:)).

## Topics

### Setting the Delegate

[`delegate`](/documentation/CallKit/CXCallDirectoryExtensionContext/delegate)

Sets a delegate that can handle request failures for the Call Directory extension context object.

### Adding Entries

[`addIdentificationEntry(withNextSequentialPhoneNumber:label:)`](/documentation/CallKit/CXCallDirectoryExtensionContext/addIdentificationEntry(withNextSequentialPhoneNumber:label:))

Adds an identification entry with the specified phone number and label.

[`addBlockingEntry(withNextSequentialPhoneNumber:)`](/documentation/CallKit/CXCallDirectoryExtensionContext/addBlockingEntry(withNextSequentialPhoneNumber:))

Adds a blocking entry with the specified phone number.

### Removing Entries

[`removeAllBlockingEntries()`](/documentation/CallKit/CXCallDirectoryExtensionContext/removeAllBlockingEntries())

Removes all stored blocking entries.

[`removeAllIdentificationEntries()`](/documentation/CallKit/CXCallDirectoryExtensionContext/removeAllIdentificationEntries())

Removes all stored identification entries.

[`removeBlockingEntry(withPhoneNumber:)`](/documentation/CallKit/CXCallDirectoryExtensionContext/removeBlockingEntry(withPhoneNumber:))

Removes a blocking entry that contains the specified phone number.

[`removeIdentificationEntry(withPhoneNumber:)`](/documentation/CallKit/CXCallDirectoryExtensionContext/removeIdentificationEntry(withPhoneNumber:))

Removes an identification entry that contains the specified phone number.

### Completing Requests

[`isIncremental`](/documentation/CallKit/CXCallDirectoryExtensionContext/isIncremental)

A Boolean value that indicates whether the request provides data incrementally.

[`completeRequest(completionHandler:)`](/documentation/CallKit/CXCallDirectoryExtensionContext/completeRequest(completionHandler:))

Completes the request to the extension context.

### Types

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

A value that represents a phone number consisting of a country calling code followed by a sequence of digits.

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

The maximum allowable value for a phone number.



---

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)