Instance Property

enabled

A Boolean used to toggle the enabled state of the VPN configuration.

Declaration

@property(getter=isEnabled) BOOL enabled;

Discussion

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 NSNotificationCenter to observe the NEVPNConfigurationChangeNotification notification for the NEVPNManager object so that your code can detect when the VPN configuration has been disabled.

See Also

Accessing VPN Configuration Properties

protocolConfiguration

An NEVPNProtocol object containing the configuration settings of the VPN tunneling protocol.

protocol

An NEVPNProtocol object containing the configuration settings of the VPN tunneling protocol.

Deprecated
localizedDescription

A string containing the display name of the VPN configuration.

onDemandEnabled

A Boolean used to toggle the Connect On Demand capability.

onDemandRules

An ordered list of Connect On Demand rules