<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEHotspotConfiguration/init(hs20Settings:eapSettings:)-291m2",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEHotspotConfiguration(im)initWithHS20Settings:eapSettings:"
  },
  "title" : "init(hs20Settings:eapSettings:)"
}
-->

# 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.

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

## Parameters

`hs20Settings`

Hotspot 2.0 settings. For possible values, see [`NEHotspotHS20Settings`](/documentation/NetworkExtension/NEHotspotHS20Settings).

`eapSettings`

EAP settings. For possible values, see [`NEHotspotEAPSettings`](/documentation/NetworkExtension/NEHotspotEAPSettings)

---

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)