---
title: loadFromPreferences()
framework: networkextension
role: symbol
role_heading: Instance Method
path: networkextension/nehotspotmanager/loadfrompreferences()
---

# loadFromPreferences()

Loads the hotspot manager configuration from the Network Extension preferences.

## Declaration

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

## Discussion

Discussion If you haven’t previously saved a configuration with saveToPreferences(), this call loads a default configuration. This method throws NEHotspotManager.Error value asynchronously on failure.

## See Also

### Managing the saved configuration

- [saveToPreferences()](networkextension/nehotspotmanager/savetopreferences().md)
- [removeFromPreferences()](networkextension/nehotspotmanager/removefrompreferences().md)
