Contents

remediateVerdict(withRemediationURLMapKey:remediationButtonTextMapKey:)

Creates a verdict to drop the current chunk of network data and all subsequent data for the current flow, and provides a remediation URL.

Declaration

class func remediateVerdict(withRemediationURLMapKey remediationURLMapKey: String?, remediationButtonTextMapKey: String?) -> NEFilterDataVerdict

Parameters

  • remediationURLMapKey:

    The key in the Filter Control Provider’s Remediationmap dictionary corresponding to the URL of the remediation link to give to the user.

  • remediationButtonTextMapKey:

    The key in the Filter Control Provider’s remediationMap dictionary that corresponds to the text of the remediation link text to give to the user.

Return Value

A NEFilterDataVerdict object.

Discussion

When the Filter Data Provider returns this verdict from one of its data filtering methods, the system resolves the verdict as follows:

  1. The system uses the verdict’s remediationURLMapKey and remediationButtonTextMapKey to look up the remediation URL parameters in the remediationMap dictionary set by the Filter Control Provider.

  2. The system then inserts the remediation URL parameters into the block page and presents it to the user.

The user can tap the URL to appeal the decision to drop the flow. This starts the remediation process, if your app provides one.

See Also

Creating data verdicts