Instance Method

copyAppRules

Create a copy of the app rules currently set in the configuration.

Declaration

- (NSArray<NEAppRule *> *)copyAppRules;

Return Value

An array of NEAppRule objects, or nil if the configuration does not have any app rules.

Discussion

This method provides read-only access to the configuration’s app rules. See the discussion of Per-App VPN earlier in this document for more details about how to configure Per-App VPN.

See Also

Managing Tunnel Configurations

+ loadAllFromPreferencesWithCompletionHandler:

Read all of the VPN configurations created by the calling app that have previously been saved to the Network Extension preferences.