---
title: "filterDataVerdict(withFilterInbound:peekInboundBytes:filterOutbound:peekOutboundBytes:)"
framework: networkextension
role: symbol
role_heading: Type Method
path: "networkextension/nefilternewflowverdict/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.

## Declaration

```swift
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 -[doc://com.apple.networkextension/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 -[doc://com.apple.networkextension/documentation/NetworkExtension/NEFilterDataProvider handleOutboundDataFromFlow:readBytesStartOffset:readBytes:].

## Return Value

Return Value A NEFilterNewFlowVerdict object.

## See Also

### Creating new flow verdicts

- [allow()](networkextension/nefilternewflowverdict/allow().md)
- [drop()](networkextension/nefilternewflowverdict/drop().md)
- [pause()](networkextension/nefilternewflowverdict/pause().md)
- [remediateVerdict(withRemediationURLMapKey:remediationButtonTextMapKey:)](networkextension/nefilternewflowverdict/remediateverdict(withremediationurlmapkey:remediationbuttontextmapkey:).md)
- [needRules()](networkextension/nefilternewflowverdict/needrules().md)
- [urlAppendStringVerdict(withMapKey:)](networkextension/nefilternewflowverdict/urlappendstringverdict(withmapkey:).md)
