<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaDevice",
  "identifier" : "/documentation/MediaDevice/MediaDeviceRoutingManager/receiveData(_:fromApplication:session:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Media Device"
    ],
    "preciseIdentifier" : "s:11MediaDevice0aB14RoutingManagerC11receiveData_15fromApplication7sessiony10Foundation0F0V_SSAA0A13OutputSessionCtF"
  },
  "title" : "receiveData(_:fromApplication:session:)"
}
-->

# receiveData(_:fromApplication:session:)

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

```
@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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)