Instance Method


Applies a set of filtering rules associated with the provider and changes the default filtering action.


func apply(_ settings: NEFilterSettings?, completionHandler: @escaping (Error?) -> Void)



A NEFilterSettings object containing the filter settings to apply to the system. Pass nil to revert to the default settings, which are an empty list of rules and a default action of NEFilterAction.filterData.


A closure executed when the system finishes applying the settings. The closure receives an NSError parameter; a non-nil value indicates an error occurred while applying the settings.

See Also

Changing Filter Settings

class NEFilterSettings

The rules and other settings that define the operation of a filter.