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

# setDelegate(_:queue:)

Sets a call observer delegate, specifying an optional queue on which to execute delegate methods.

```
func setDelegate(_ delegate: (any CXCallObserverDelegate)?, queue: dispatch_queue_t?)
```

## Parameters

`delegate`

An object conforming to the `CXCallObserverDelegate` protocol.

`queue`

The queue on which to execute delegate methods.

    If     `nil`    , delegate methods are performed on the main queue.
  
  > Important:
  > Any queue specified is stored as a weak reference.

## Discussion

---

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)