Instance Property

onDemandRules

An ordered list of Connect On Demand rules

Declaration

@property(copy) NSArray<NEOnDemandRule *> *onDemandRules;

Discussion

The VPN configuration can optionally be configured to connect automatically based on a variety of criteria specified in NEOnDemandRule objects. The onDemandRules property contains the current set of Connect On Demand rules for the VPN configuration. Each rule is evaluated in order, and the first rule that matches all criteria on the current network is applied.

See Also

Accessing VPN Configuration Properties

enabled

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

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.