Instance Method

handleNewFlow(_:)

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

Declaration

func handleNewFlow(_ flow: NEFilterFlow) -> NEFilterNewFlowVerdict

Parameters

flow

An NEFilterFlow object containing information about the new flow.

Return Value

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

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

func handleInboundDataComplete(for: NEFilterFlow) -> NEFilterDataVerdict

Make a filtering decision after seeing all of the inbound data for a flow.

func handleOutboundDataComplete(for: NEFilterFlow) -> NEFilterDataVerdict

Make a filtering decision after seeing all of the outbound data for a flow.