Initialize an NEEvaluate
instance with a list of destination host domains and an action.
SDKs
- iOS 8.0+
- macOS 10.11+
- Mac Catalyst 13.0+
Framework
- Network
Extension
Declaration
- (instancetype)initWithMatchDomains:(NSArray<NSString *> *)domains andAction:(NEEvaluate Connection Rule Action)action;
Parameters
domains
An array of domains used to match the destination hostname of connections. If the destination hostname of a connection matches any of the domains in the array, then the connection matches the rule. Each domain is matched against the destination hostname using suffix matching, and each label in the domain must match an entire label in the hostname. For example, the domain
example
will match the hostname.com www
but not.example .com www
..anotherexample .com action
The action to apply for connections matching the rule.