Type Method

dataVerdictWithPassBytes:peekBytes:

Create a verdict that indicates to the system that a chunk of network data should be passed on to its final destination, and specifying the next chunk of data that the Filter Data Provider needs to see as it makes its filtering decision.

Declaration

+ (NEFilterDataVerdict *)dataVerdictWithPassBytes:(NSUInteger)passBytes peekBytes:(NSUInteger)peekBytes;

Parameters

passBytes

The number of bytes to pass on to its final destination. Note that the system does not pass the bytes to the destination until a "final" (i.e. allow/drop/remediate) verdict is returned. To pass all subsequent bytes, set this parameter to NEFilterFlowBytesMax.

peekBytes

The number of bytes after the end of the passBytes that the Filter Data Provider wants to see in the next call to handleOutboundDataFromFlow:readBytesStartOffset:readBytes: or handleInboundDataFromFlow:readBytesStartOffset:readBytes:. To see all subsequent bytes, set this parameter to NEFilterFlowBytesMax.

Return Value

A NEFilterDataVerdict object.

See Also

Creating Data Verdicts

+ allowVerdict

Create a verdict that indicates to the system that the current chunk of network data and all subsequent data for the current flow should be passed on to its final destination.

+ dropVerdict

Create a verdict that indicates to the system that the current chunk of network data and all subsequent data for the current flow should be dropped.

+ remediateVerdictWithRemediationURLMapKey:remediationButtonTextMapKey:

Create a verdict that indicates to the system that the current chunk of network data and all subsequent data for the current flow should be dropped, but allow the user to request access by tapping or clicking on a URL.

+ needRulesVerdict

Create a verdict that indicates to the system that the Filter Control Provider needs to update the rules before the Filter Data Provider can make a decision about the flow’s data.