Type Method

remediateVerdictWithRemediationURLMapKey:remediationButtonTextMapKey:

Create a verdict that indicates to the system that the current chunk of network data and all subsequent data for the current flow should be dropped, but allow the user to request access by tapping or clicking on a URL.

Declaration

+ (NEFilterDataVerdict *)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

A NEFilterDataVerdict object.

Discussion

When the Filter Data Provider returns this verdict from one of its data filtering methods, the system will use 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 Data Verdicts

+ allowVerdict

Create a verdict that indicates to the system that the current chunk of network data and all subsequent data for the current flow should be passed on to its final destination.

+ dropVerdict

Create a verdict that indicates to the system that the current chunk of network data and all subsequent data for the current flow should be dropped.

+ needRulesVerdict

Create a verdict that indicates to the system that the Filter Control Provider needs to update the rules before the Filter Data Provider can make a decision about the flow’s data.

+ dataVerdictWithPassBytes:peekBytes:

Create a verdict that indicates to the system that a chunk of network data should be passed on to its final destination, and specifying the next chunk of data that the Filter Data Provider needs to see as it makes its filtering decision.

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