handle(action:for:completionHandler:)
Allows the extension to respond to a user action when the system displays a shield over an application.
Declaration
func handle(action: ShieldAction, for application: ApplicationToken, completionHandler: @escaping (ShieldActionResponse) -> Void)Parameters
- action:
The user’s action.
- application:
The application that the shield covers.
- completionHandler:
A closure for your extension to call after you handle the user’s action.