---
title: "dataReceived(_:)"
framework: Accessory Transport Extension
role: symbol
role_heading: Instance Method
platforms: [iOS 27.3+]
path: "accessorytransportextension/accessoryfeaturesessionhandler/datareceived(_:)"
---

# dataReceived(_:)

Handles data that the transport extension sends.

## Declaration

```swift
func dataReceived(_ data: Data) async throws
```

## Parameters

- `data`: The data that the transport extension sends.

## Mentioned in

Sending data to an accessory in the background
