onDemandRules
An ordered list of Connect On Demand rules.
Declaration
var onDemandRules: [NEOnDemandRule]? { get set }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.