handleRemediation(for:completionHandler:)
Handle a request for remediation from the user.
Declaration
func handleRemediation(for flow: NEFilterFlow, completionHandler: @escaping @Sendable (NEFilterControlVerdict) -> Void)func handleRemediation(for flow: NEFilterFlow) async -> NEFilterControlVerdictParameters
- flow:
An Nefilterflow object containing details about the flow that requires remediation.
- completionHandler:
A block that must be called when the Filter Control Provider has made a decision about the flow. The Nefiltercontrolverdict object passed to this block contains the decision that the Filter Control Provider made about the flow.
Discussion
This method is called by the system when the Filter Data Provider indicates that the filtering verdict for the given flow is NEFilterRemediateVerdictNeedRules. Subclass implementations must override this method and implement whatever steps are necessary to remediate the given flow.