A Boolean used to toggle the enabled state of the VPN configuration.
- iOS 8.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
A VPN configuration must be enabled before it can be used to bring up a VPN tunnel. Only one Personal VPN configuration can be enabled simultaneously on the system. If another Personal VPN configuration is enabled, then this property will be automatically set to
NO in the Network Extension preferences. Note that you will need to re-load the VPN configuration from the preferences in order to see the change in value. You can register with
NSNotification to observe the
NEVPNConfiguration notification for the
NEVPNManager object so that your code can detect when the VPN configuration has been disabled.