---
title: "receiveData(_:fromApplication:session:)"
framework: mediadevice
role: symbol
role_heading: Instance Method
path: "mediadevice/mediadeviceroutingmanager/receivedata(_:fromapplication:session:)"
---

# receiveData(_:fromApplication:session:)

Delivers data received from a remote application to the system for processing.

## Declaration

```swift
@MainActor final func receiveData(_ data: Data, fromApplication applicationIdentifier: String, session: MediaOutputSession)
```

## Parameters

- `data`: The data received from the remote application.
- `applicationIdentifier`: The identifier of the application that sent the data.
- `session`: The session associated with the received data.

## Discussion

Discussion Call this function when data has been received from a remote application.
