---
title: "setActionQueue(_:action:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcaptureindexpicker/setactionqueue(_:action:)"
---

# setActionQueue(_:action:)

Sets the action to perform on the specified dispatch queue when the control’s value changes.

## Declaration

```swift
@nonobjc func setActionQueue(_ actionQueue: DispatchQueue, action: @escaping (Int) -> ())
```

## Parameters

- `actionQueue`: A dispatch queue on which to call the action.
- `action`: The action to perform in response to changes to the control’s value.

## Discussion

Discussion If the action modifies a property of the camera system, the specified dispatch queue must represent the camera system’s same exclusive execution context (see isSameExclusiveExecutionContext(other:)).
