---
title: "activatedDevice(_:session:)"
framework: mediadevice
role: symbol
role_heading: Instance Method
path: "mediadevice/mediadeviceroutingmanager/activateddevice(_:session:)"
---

# activatedDevice(_:session:)

Notifies the system that a device has been successfully activated and is ready for use.

## Declaration

```swift
@MainActor final func activatedDevice(_ device: MediaOutputDevice, session: MediaOutputSession)
```

## Parameters

- `device`: The device that activation completed for.
- `session`: The session associated with the activation.

## Mentioned in

Creating a media device extension

## Discussion

Discussion Call this function when activation has completed for a device.
