<!--
{
  "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/NEFilterNewFlowVerdict/filterDataVerdict(withFilterInbound:peekInboundBytes:filterOutbound:peekOutboundBytes:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEFilterNewFlowVerdict(cm)filterDataVerdictWithFilterInbound:peekInboundBytes:filterOutbound:peekOutboundBytes:"
  },
  "title" : "filterDataVerdict(withFilterInbound:peekInboundBytes:filterOutbound:peekOutboundBytes:)"
}
-->

# filterDataVerdict(withFilterInbound:peekInboundBytes:filterOutbound:peekOutboundBytes:)

Create a verdict that indicates to the system that the filter needs to make a decision about a new flow after seeing a portion of the flow’s data.

```
class func filterDataVerdict(withFilterInbound filterInbound: Bool, peekInboundBytes: Int, filterOutbound: Bool, peekOutboundBytes: Int) -> NEFilterNewFlowVerdict
```

## Parameters

`filterInbound`

A Boolean indicating whether or not the filter needs to see inbound data for the flow.

`peekInboundBytes`

The number of inbound bytes that the filter needs to see in the subsequent call to -[[`NEFilterDataProvider`](/documentation/NetworkExtension/NEFilterDataProvider) `handleInboundDataFromFlow:readBytesStartOffset:readBytes:`].

`filterOutbound`

A Boolean indicating whether or not the filter needs to see outbound data for the flow.

`peekOutboundBytes`

The number of outbound bytes that the filter needs to see in the subsequent call to -[[`NEFilterDataProvider`](/documentation/NetworkExtension/NEFilterDataProvider) `handleOutboundDataFromFlow:readBytesStartOffset:readBytes`:].

## Return Value

A `NEFilterNewFlowVerdict` object.

---

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)