Type Method

filterDataVerdictWithFilterInbound: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

+ (NEFilterNewFlowVerdict *)filterDataVerdictWithFilterInbound:(BOOL)filterInbound peekInboundBytes:(NSUInteger)peekInboundBytes filterOutbound:(BOOL)filterOutbound peekOutboundBytes:(NSUInteger)peekOutboundBytes;

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 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 handleOutboundDataFromFlow:readBytesStartOffset:readBytes:].

Return Value

A NEFilterNewFlowVerdict object.

See Also

Creating New Flow Verdicts

+ allowVerdict

Create a verdict that indicates to the system that the all of the new flow’s data should be allowed to pass to its final destination.

+ dropVerdict

Create a verdict that indicates to the system that all of the new flow’s data should dropped, and the user should not be given the opportunity to request access.

+ remediateVerdictWithRemediationURLMapKey:remediationButtonTextMapKey:

Create a verdict that indicates to the system that all of the new flow’s data 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 Data Provider needs more information before it can make a decision about a new flow.

+ URLAppendStringVerdictWithMapKey:

Create a verdict that indicates to the system that all of the new flow’s data should be allowed to pass to its final destination, but a string should first be appended to the new flow’s request URL.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software