---
title: "update(_:using:for:)"
framework: networkextension
role: symbol
role_heading: Instance Method
path: "networkextension/nefilterdataprovider/update(_:using:for:)"
---

# update(_:using:for:)

Updates the verdict for a flow outside the context of any filter data provider callback.

## Declaration

```swift
func update(_ flow: NEFilterSocketFlow, using verdict: NEFilterDataVerdict, for direction: NETrafficDirection)
```

## Parameters

- `flow`: The NEFilterSocketFlow to update the verdict for.
- `verdict`: An doc://com.apple.networkextension/documentation/NetworkExtension/NEFilterDataVerdict instance. This must be an doc://com.apple.networkextension/documentation/NetworkExtension/NEFilterDataVerdict/allow() or doc://com.apple.networkextension/documentation/NetworkExtension/NEFilterDataVerdict/drop() verdict, or a data verdict created with the Swift initializer or ObjectiveC type method, doc://com.apple.networkextension/documentation/NetworkExtension/NEFilterDataVerdict/init(passBytes:peekBytes:).
- `direction`: The direction to which the verdict applies. Pass doc://com.apple.networkextension/documentation/NetworkExtension/NETrafficDirection/any to update the verdict for both the inbound and outbound directions. This parameter has no effect if the verdict is doc://com.apple.networkextension/documentation/NetworkExtension/NEFilterDataVerdict/drop().
