Contents

loadAllFromPreferences(completionHandler:)

Loads all previously-saved transparent proxy configurations.

Declaration

class func loadAllFromPreferences(completionHandler: @escaping  @Sendable ([NETransparentProxyManager]?, (any Error)?) -> Void)
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

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