Load the VPN configuration from the Network Extension preferences.
- iOS 8.0+
- macOS 10.11+
A block that takes an
NSErrorobject. This block will be executed on the caller's main thread after the load operation is complete. If the configuration does not exist in the preferences or is loaded successfully, the error parameter will be nil. If an error occurred while loading the configuration, the error parameter will be set to an
NSErrorobject containing details about the error. See NEVPN Errors for a list of possible errors.
You must call this method at least once before calling
save for the first time after your app launches.