Contents

remediateVerdict(withRemediationURLMapKey:remediationButtonTextMapKey:)

Create a verdict that indicates to the system that all of the new flow’s data should be dropped, but allow the user to request access by tapping or clicking on a URL.

Declaration

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

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 corresponding to the text of the remediation link text to give to the user.

Return Value

An NEFilterNewFlowVerdict object.

Discussion

When the Filter Data Provider returns this verdict from its handleNewFlow: method, 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. The remediation URL parameters are then inserted into the block page which is presented to the user.

See Also

Creating new flow verdicts