Instance Method

handleRemediationForFlow:completionHandler:

Handle a request for remediation from the user.

Declaration

- (void)handleRemediationForFlow:(NEFilterFlow *)flow completionHandler:(void (^)(NEFilterControlVerdict *))completionHandler;

Parameters

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.

See Also

Handling Remediation

remediationMap

A dictionary containing sets of strings used to customize the remediation portion of the block page.

NEFilterProviderRemediationMapRemediationButtonTexts

A key in the remediationMap dictionary. The value of this key should be set to a dictionary that maps button text string identifiers to the text to display for the remediation URL link in the block page. The button text string identifiers are defined by the Filter Control Provider app extension.

NEFilterProviderRemediationMapRemediationURLs

A key in the remediationMap dictionary. The value of this key should be set to a dictionary that maps URL identifiers to remediation URLs to be inserted into the block page. The URL identifiers are defined by the Filter Control Provider app extension.

NEFilterProviderRemediationURLFlowURL

This string will be replaced with the full URL of the flow.

NEFilterProviderRemediationURLFlowURLHostname

This string will be replaced with the hostname portion of the flow’s URL.

NEFilterProviderRemediationURLOrganization

This string will be replaced with the value of the organization property set in the filter configuration.

NEFilterProviderRemediationURLUsername

This string will be replaced with the value of the username property set in the filter configuration.

URLAppendStringMap

A dictionary containing strings to be appended to URLs.

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