---
title: "getEnabledStatusForExtension(withIdentifier:completionHandler:)"
framework: callkit
role: symbol
role_heading: Instance Method
path: "callkit/cxcalldirectorymanager/getenabledstatusforextension(withidentifier:completionhandler:)"
---

# getEnabledStatusForExtension(withIdentifier:completionHandler:)

Asynchronously returns the enabled status of the extension with the specified identifier.

## Declaration

```swift
func getEnabledStatusForExtension(withIdentifier identifier: String, completionHandler completion: @escaping @Sendable (CXCallDirectoryManager.EnabledStatus, (any Error)?) -> Void)
```

```swift
func enabledStatusForExtension(withIdentifier identifier: String) async throws -> CXCallDirectoryManager.EnabledStatus
```

## Parameters

- `identifier`: The identifier for the call extension.
- `completion`: A block to be executed when the manager is finished determining the enabled status of the specified extension.

## Discussion

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: func enabledStatusForExtension(withIdentifier identifier: String) async throws -> CXCallDirectoryManager.EnabledStatus For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously.

## See Also

### Working with a Call Directory App Extension

- [reloadExtension(withIdentifier:completionHandler:)](callkit/cxcalldirectorymanager/reloadextension(withidentifier:completionhandler:).md)
- [CXCallDirectoryManager.EnabledStatus](callkit/cxcalldirectorymanager/enabledstatus.md)
