---
title: "setActionQueue(_:action:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcaptureslider/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 (Float) -> ())
```

## Parameters

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

## Mentioned in

Enhancing your app experience with the Camera Control

## 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:)).
