<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEHotspotManager/loadFromPreferences()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "s:16NetworkExtension16NEHotspotManagerC19loadFromPreferencesyyYaKF"
  },
  "title" : "loadFromPreferences()"
}
-->

# loadFromPreferences()

Loads the hotspot manager configuration from the Network Extension preferences.

```
final func loadFromPreferences() async throws
```

## Discussion

If you haven’t previously saved a configuration with [`saveToPreferences()`](/documentation/NetworkExtension/NEHotspotManager/saveToPreferences()), this call loads a default configuration.

This method throws [`NEHotspotManager.Error`](/documentation/NetworkExtension/NEHotspotManager/Error) value asynchronously on failure.

---

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)