Instance Method

handleOutboundData(from:readBytesStartOffset:readBytes:)

Make a filtering decision about a chunk of outbound data.

Declaration

func handleOutboundData(from flow: NEFilterFlow, readBytesStartOffset offset: Int, readBytes: Data) -> NEFilterDataVerdict

Parameters

flow

An NEFilterFlow object containing information about the flow.

offset

An unsigned integer containing the offset of the data stored in readBytes. This offset is measured from the beginning of the flow’s outbound data.

readBytes

An NSData object containing the data to be filtered.

Return Value

An NEFilterDataVerdict indicating how the system should handle the chunk of data and all subsequent outbound data for the flow.

Discussion

NEFilterDataProvider subclasses must override this method.

See Also

Filtering Network Content

func handleNewFlow(NEFilterFlow) -> NEFilterNewFlowVerdict

Make a filtering decision for a newly-created flow of 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.