---
title: "setDelegate(_:queue:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcapturebroadcastvideooutput/setdelegate(_:queue:)"
---

# setDelegate(_:queue:)

Sets the receiver’s delegate and the dispatch queue on which the delegate will be called.

## Declaration

```swift
func setDelegate(_ delegate: (any AVCaptureBroadcastVideoOutputDelegate)?, queue delegateCallbackQueue: dispatch_queue_t?)
```

## Parameters

- `delegate`: An object conforming to the doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureBroadcastVideoOutputDelegate protocol that will receive broadcast video output notifications.
- `delegateCallbackQueue`: A dispatch queue on which all doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureBroadcastVideoOutputDelegate methods will be called.

## See Also

### Related Documentation

- [delegate](avfoundation/avcapturebroadcastvideooutput/delegate.md)
- [AVCaptureBroadcastVideoOutputDelegate](avfoundation/avcapturebroadcastvideooutputdelegate.md)

### Managing the Output

- [delegate](avfoundation/avcapturebroadcastvideooutput/delegate.md)
- [delegateCallbackQueue](avfoundation/avcapturebroadcastvideooutput/delegatecallbackqueue.md)
