---
title: "loadAllFromPreferences(completionHandler:)"
framework: networkextension
role: symbol
role_heading: Type Method
path: "networkextension/netransparentproxymanager/loadallfrompreferences(completionhandler:)"
---

# loadAllFromPreferences(completionHandler:)

Loads all previously-saved transparent proxy configurations.

## Declaration

```swift
class func loadAllFromPreferences(completionHandler: @escaping @Sendable ([NETransparentProxyManager]?, (any Error)?) -> Void)
```

```swift
class func loadAllFromPreferences() async throws -> [NETransparentProxyManager]
```

## Parameters

- `completionHandler`: A Swift closure or an ObjectiveC block that receives as parameters an array of transparent proxy manager instances loaded from disk and an error. If the error is nil, no error occurred.

## Discussion

Discussion This method asychronously reads all previously-saved transparent proxy configurations associated with the calling app.
