Type Method

loadAllFromPreferences(completionHandler:)

Read all of the VPN configurations created by the calling app that have previously been saved to the Network Extension preferences.

Declaration

class func loadAllFromPreferences(completionHandler: @escaping ([NETunnelProviderManager]?, Error?) -> Void)

Parameters

completionHandler

A block that takes an NSArray of NETunnelProviderManager objects, and an NSError object. This block will be executed on the caller’s main thread after the load operation is complete. If no configurations exist for the calling app then the managers parameter will be set to nil and the error parameter will be set to nil. If an error occurred while loading the configurations, the error parameter will be set to an NSError object containing details about the error. See NEVPNManager for a list of possible errors.

See Also

Managing Tunnel Configurations

func copyAppRules() -> [NEAppRule]?

Create a copy of the app rules currently set in the configuration.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software