---
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 slider’s value changes.

## Declaration

```occ
- (void) setActionQueue:(dispatch_queue_t) actionQueue action:(void (^)(float newValue)) action;
```

## 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

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