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

# setConfidence(_:)

Indicate the level of confidence in being able to handle the network.

```
func setConfidence(_ confidence: NEHotspotHelperConfidence)
```

## Parameters

`confidence`

The level of confidence that the caller has in being able to help the system connect to this network.

## Discussion

Hotspot Helper apps use this method in the response to the [`NEHotspotHelperCommandType.evaluate`](/documentation/NetworkExtension/NEHotspotHelperCommandType/evaluate) and [`NEHotspotHelperCommandType.filterScanList`](/documentation/NetworkExtension/NEHotspotHelperCommandType/filterScanList) commands.

---

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)