Make a filtering decision about a chunk of outbound data.
SDKs
- iOS 9.0+
- macOS 10.15+
- Mac Catalyst 13.0+
Framework
- Network
Extension
Declaration
func handleOutboundData(from flow: NEFilter Flow, readBytesStartOffset offset: Int, readBytes: Data) -> NEFilter Data Verdict
Parameters
flow
An
NEFilter
object containing information about the flow.Flow offset
An unsigned integer containing the offset of the data stored in
read
. This offset is measured from the beginning of the flow’s outbound data.Bytes readBytes
An
NSData
object containing the data to be filtered.
Return Value
An NEFilter
indicating how the system should handle the chunk of data and all subsequent outbound data for the flow.
Discussion
NEFilter
subclasses must override this method.