---
title: "setConfidence(_:)"
framework: networkextension
role: symbol
role_heading: Instance Method
path: "networkextension/nehotspotnetwork/setconfidence(_:)"
---

# setConfidence(_:)

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

## Declaration

```swift
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

Discussion Hotspot Helper apps use this method in the response to the NEHotspotHelperCommandType.evaluate and NEHotspotHelperCommandType.filterScanList commands.

## See Also

### Network annotation

- [NEHotspotHelperConfidence](networkextension/nehotspothelperconfidence.md)
- [setPassword(_:)](networkextension/nehotspotnetwork/setpassword(_:).md)
