update(_:using:for:)
Updates the verdict for a flow outside the context of any filter data provider callback.
Declaration
func update(_ flow: NEFilterSocketFlow, using verdict: NEFilterDataVerdict, for direction: NETrafficDirection)Parameters
- flow:
The NEFilterSocketFlow to update the verdict for.
- verdict:
An Nefilterdataverdict instance. This must be an Allow() or Drop() verdict, or a data verdict created with the Swift initializer or ObjectiveC type method, Init(passbytes:peekbytes:).
- direction:
The direction to which the verdict applies. Pass Any to update the verdict for both the inbound and outbound directions. This parameter has no effect if the verdict is Drop().