<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVSystemRouting",
  "identifier" : "/documentation/AVSystemRouting/AVSystemRouteDataChannel/sendData:completionHandler:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVSystemRouting"
    ],
    "preciseIdentifier" : "c:objc(cs)AVSystemRouteDataChannel(im)sendData:completionHandler:"
  },
  "title" : "sendData:completionHandler:"
}
-->

# sendData:completionHandler:

Sends data to a remote application.

```
- (void) sendData:(NSData *) data completionHandler:(void (^)(NSError *error)) completionHandler;
```

## Parameters

`data`

The data to send to the remote application.

`completionHandler`

A completion handler called when the send operation completes.
The handler receives an error if the send failed, or `nil` on success.

## Discussion

Calling this function again before the completion handler of a previous send is called is safe;
multiple send operations can be in-flight concurrently.

---

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)