<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEFilterDataProvider/handleNewFlow(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEFilterDataProvider(im)handleNewFlow:"
  },
  "title" : "handleNewFlow(_:)"
}
-->

# handleNewFlow(_:)

Make a filtering decision for a newly-created flow of network content.

```
func handleNewFlow(_ flow: NEFilterFlow) -> NEFilterNewFlowVerdict
```

## Parameters

`flow`

An [`NEFilterFlow`](/documentation/NetworkExtension/NEFilterFlow) object containing information about the new flow.

## Return Value

An [`NEFilterNewFlowVerdict`](/documentation/NetworkExtension/NEFilterNewFlowVerdict) object indicating how the system should handle the flow.

## Discussion

This function is called by the system when a filtering decision needs to be made about a new flow of network content.

`NEFilterDataProvider` subclasses must override this method.

---

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)