Instance Property

isOnDemandEnabled

A Boolean used to toggle the Connect On Demand capability.

Declaration

var isOnDemandEnabled: Bool { get set }

Discussion

The default value of this property is false.

See Also

Accessing VPN Configuration Properties

var isEnabled: Bool

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

var protocolConfiguration: NEVPNProtocol?

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

var `protocol`: NEVPNProtocol?

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

Deprecated
var localizedDescription: String?

A string containing the display name of the VPN configuration.

var onDemandRules: [NEOnDemandRule]?

An ordered list of Connect On Demand rules

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