<!--
{
  "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/completeRequest(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CallKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CXCallDirectoryExtensionContext(im)completeRequestWithCompletionHandler:"
  },
  "title" : "completeRequest(completionHandler:)"
}
-->

# completeRequest(completionHandler:)

Completes the request to the extension context.

```
func completeRequest(completionHandler completion: (@Sendable (Bool) -> Void)? = nil)
```

## Parameters

`completion`

A block to be executed after the request to the extension context is completed.

- expired: Whether the receiver expired during the request.

    If     <doc://com.apple.documentation/documentation/Swift/true>    , then any identification or blocking entries added by the extension context were not added to the extension.

## Discussion

> Important:
> You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration:
> 
> ```swift
> func completeRequest() async -> Bool
> ```
> 
> For information about concurrency and asynchronous code in Swift, see <doc://com.apple.documentation/documentation/Swift/calling-objective-c-apis-asynchronously>.

Call this method on the instance of [`CXCallDirectoryExtensionContext`](/documentation/CallKit/CXCallDirectoryExtensionContext) passed as an argument to the block parameter of the  [`CXCallDirectoryProvider`](/documentation/CallKit/CXCallDirectoryProvider) instance method [`beginRequest(with:)`](/documentation/CallKit/CXCallDirectoryProvider/beginRequest(with:)). This method should be called once at the end of the block.

---

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)