<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureSlider/setActionQueue(_:action:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So15AVCaptureSliderC12AVFoundationE14setActionQueue_6actionySo17OS_dispatch_queueC_ySfctF"
  },
  "title" : "setActionQueue(_:action:)"
}
-->

# setActionQueue(_:action:)

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

```
@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.

## 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 <doc://com.apple.documentation/documentation/Swift/SerialExecutor/isSameExclusiveExecutionContext(other:)>).

---

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)