A VPN On Demand rule that evaluate the app’s connection to determine whether to run its action.


class NEOnDemandRuleEvaluateConnection : NEOnDemandRule


When rules of this class match, the properties of the network connection being established are matched against a set of connection rules. The action of the matched rule (if any) is used to determine whether or not the VPN will be started.


Accessing Connection Rules

class NEEvaluateConnectionRule

NEEvaluateConnectionRule associates properties of network connections with an action.


Inherits From

Conforms To

See Also


class NEOnDemandRuleConnect

A VPN On Demand rule that connects the VPN.

class NEOnDemandRuleDisconnect

A VPN On Demand rule that disconnects the VPN.

class NEOnDemandRuleIgnore

A VPN On Demand rule that doesn’t change the status of the VPN.

class NEOnDemandRule

A base class shared by all VPN 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