---
title: "handleNewFlow(_:)"
framework: networkextension
role: symbol
role_heading: Instance Method
path: "networkextension/nefilterdataprovider/handlenewflow(_:)"
---

# handleNewFlow(_:)

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

## Declaration

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

## Parameters

- `flow`: An doc://com.apple.networkextension/documentation/NetworkExtension/NEFilterFlow object containing information about the new flow.

## Return Value

Return Value An NEFilterNewFlowVerdict object indicating how the system should handle the flow.

## Discussion

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.

## See Also

### Filtering network content

- [handleInboundData(from:readBytesStartOffset:readBytes:)](networkextension/nefilterdataprovider/handleinbounddata(from:readbytesstartoffset:readbytes:).md)
- [NEFilterDataAttribute](networkextension/nefilterdataattribute.md)
- [handleOutboundData(from:readBytesStartOffset:readBytes:)](networkextension/nefilterdataprovider/handleoutbounddata(from:readbytesstartoffset:readbytes:).md)
- [handleInboundDataComplete(for:)](networkextension/nefilterdataprovider/handleinbounddatacomplete(for:).md)
- [handleOutboundDataComplete(for:)](networkextension/nefilterdataprovider/handleoutbounddatacomplete(for:).md)
