Type Method

drop(withUpdateRules:)

Create a verdict that indicates to the system that all of the flow’s data should be dropped, and that the filtering rules have been updated.

Declaration

class func drop(withUpdateRules updateRules: Bool) -> NEFilterControlVerdict

Parameters

updateRules

A Boolean indicating whether or not the Filter Control Provider updated the rules.

Return Value

An NEFilterControlVerdict object.

Discussion

When the Filter Control Provider passes this verdict to the completion handler passed to its handleNewFlow(_:completionHandler:) method, the system will drop all of the flow’s data. In addition, if the updateRules parameter is YES the system will call the Filter Data Provider’s handleRulesChanged() method.

See Also

Creating Control Verdicts

class func allow(withUpdateRules: Bool) -> NEFilterControlVerdict

Create a verdict that indicates to the system that all of the flow’s data should be allowed to pass to its final destination, and that the filtering rules have been updated.

class func updateRules() -> NEFilterControlVerdict

Create a verdict that indicates to the system that the filtering rules have been updated, and that the Filter Data Provider needs to make a decision about the flow’s data.

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