---
title: "setNetwork(_:)"
framework: networkextension
role: symbol
role_heading: Instance Method
path: "networkextension/nehotspothelperresponse/setnetwork(_:)"
---

# setNetwork(_:)

Set the network that conveys the confidence level.

## Declaration

```swift
func setNetwork(_ network: NEHotspotNetwork)
```

## Parameters

- `network`: The annotated doc://com.apple.networkextension/documentation/NetworkExtension/NEHotspotNetwork object. This must be the same object that was passed in the corresponding doc://com.apple.networkextension/documentation/NetworkExtension/NEHotspotHelperCommand object.

## Discussion

Discussion In response to the NEHotspotHelperCommandType.evaluate command, the Hotspot Helper app sets the confidence level on the NEHotspotNetwork object provided with the command and calls this method to convey the confidence level to the system.

## See Also

### Response properties

- [setNetworkList(_:)](networkextension/nehotspothelperresponse/setnetworklist(_:).md)
