---
title: "init(hs20Settings:eapSettings:)"
framework: networkextension
role: symbol
role_heading: Initializer
path: "networkextension/nehotspotconfiguration/init(hs20settings:eapsettings:)-291m2"
---

# init(hs20Settings:eapSettings:)

Creates a new hotspot configuration, identified by a domain name, for a Hotspot 2.0 Wi-Fi network with HS 2.0 and EAP settings.

## Declaration

```swift
init(hs20Settings: NEHotspotHS20Settings, eapSettings: NEHotspotEAPSettings)
```

## Parameters

- `hs20Settings`: Hotspot 2.0 settings. For possible values, see doc://com.apple.networkextension/documentation/NetworkExtension/NEHotspotHS20Settings.
- `eapSettings`: EAP settings. For possible values, see doc://com.apple.networkextension/documentation/NetworkExtension/NEHotspotEAPSettings

## See Also

### Initializing a configuration

- [init(ssid:)](networkextension/nehotspotconfiguration/init(ssid:)-9apfi.md)
- [init(ssid:passphrase:isWEP:)](networkextension/nehotspotconfiguration/init(ssid:passphrase:iswep:)-3ll1v.md)
- [init(ssid:eapSettings:)](networkextension/nehotspotconfiguration/init(ssid:eapsettings:)-53cpf.md)
- [init(ssidPrefix:)](networkextension/nehotspotconfiguration/init(ssidprefix:)-1v8bx.md)
- [init(ssidPrefix:passphrase:isWEP:)](networkextension/nehotspotconfiguration/init(ssidprefix:passphrase:iswep:)-7ttmu.md)
