---
title: "updateDevices(_:)"
framework: mediadevice
role: symbol
role_heading: Instance Method
path: "mediadevice/mediadeviceroutingmanager/updatedevices(_:)"
---

# updateDevices(_:)

Notifies the system that one or more devices have changed state, so their information can be refreshed in device lists.

## Declaration

```swift
@MainActor final func updateDevices(_ devices: [MediaOutputDevice])
```

## Parameters

- `devices`: The devices whose state has been updated.

## Mentioned in

Creating a media device extension

## Discussion

Discussion Call this function when MediaOutputDevice instances have had their state updated. This may be called after an activate or deactivate call to reflect updated grouping information.
