<!--
{
  "availability" : [
    "macOS: 10.15.4 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEAppProxyFlow/setMetadata(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEAppProxyFlow(im)setMetadata:"
  },
  "title" : "setMetadata(_:)"
}
-->

# setMetadata(_:)

Sets the flow’s metadata for use by proxy providers.

```
func setMetadata(_ parameters: nw_parameters_t)
```

## Parameters

`parameters`

A nw_parameters_t object that contains the flow metadata.

## Discussion

Use an <doc://com.apple.documentation/documentation/Network/nw_parameters_t> object to create a connection that transparently proxies the flow’s data. This also provides accurate source app information to any subsequent [`NEAppProxyProvider`](/documentation/NetworkExtension/NEAppProxyProvider) instances that transparently proxy the flow.

---

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)