---
title: HandleChangeSelectedValues
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideoselectorcontrol/handlechangeselectedvalues
---

# HandleChangeSelectedValues

The system calls this virtual method when the control’s selected values change.

## Declaration

```occ
virtual kern_return_t HandleChangeSelectedValues(const IOUserVideoSelectorValue *in_control_values, size_t in_num_values);
```

## Parameters

- `in_control_values`: Pointer to an array of IOUserVideoSelectorValues to set on the control.
- `in_num_values`: The number of IOUserVideoSelectorValues in in_control_values.

## Return Value

Return Value kIOReturnSuccess on success. Upon success, the control’s value should be updated.

## Discussion

Discussion The default implementation calls SetCurrentSelectedValues() and returns kIOReturnSuccess. Subclass and override this method to handle changes to this control and return kIOReturnSuccess upon success.
