Type Method

remediateVerdictWithRemediationURLMapKey: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

+ (NEFilterNewFlowVerdict *)remediateVerdictWithRemediationURLMapKey:(NSString *)remediationURLMapKey remediationButtonTextMapKey:(NSString *)remediationButtonTextMapKey;

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

+ allowVerdict

Create a verdict that indicates to the system that the all of the new flow’s data should be allowed to pass to its final destination.

+ dropVerdict

Create a verdict that indicates to the system that all of the new flow’s data should dropped, and the user should not be given the opportunity to request access.

+ filterDataVerdictWithFilterInbound:peekInboundBytes:filterOutbound:peekOutboundBytes:

Create a verdict that indicates to the system that the filter needs to make a decision about a new flow after seeing a portion of the flow's data.

+ needRulesVerdict

Create a verdict that indicates to the system that the Filter Data Provider needs more information before it can make a decision about a new flow.

+ URLAppendStringVerdictWithMapKey:

Create a verdict that indicates to the system that all of the new flow’s data should be allowed to pass to its final destination, but a string should first be appended to the new flow’s request URL.