Contents

handle(action:for:completionHandler:)

Allows the extension to respond to a user action when the system displays a shield over a website.

Declaration

func handle(action: ShieldAction, for webDomain: WebDomainToken, completionHandler: @escaping (ShieldActionResponse) -> Void)

Parameters

  • action:

    The user’s action.

  • webDomain:

    The web domain that the shield covers.

  • completionHandler:

    A closure for your extension to call after you handle the user’s action.

See Also

Responding to someone’s action