<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEHotspotHelperResponse/setNetwork(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEHotspotHelperResponse(im)setNetwork:"
  },
  "title" : "setNetwork(_:)"
}
-->

# setNetwork(_:)

Set the network that conveys the confidence level.

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

## Parameters

`network`

The annotated [`NEHotspotNetwork`](/documentation/NetworkExtension/NEHotspotNetwork) object. This must be the same object that was passed in the corresponding [`NEHotspotHelperCommand`](/documentation/NetworkExtension/NEHotspotHelperCommand) object.

## Discussion

In response to the [`NEHotspotHelperCommandType.evaluate`](/documentation/NetworkExtension/NEHotspotHelperCommandType/evaluate) command, the Hotspot Helper app sets the confidence level on the [`NEHotspotNetwork`](/documentation/NetworkExtension/NEHotspotNetwork) object provided with the command and calls this method to convey the confidence level to the system.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)