init
TypeScriptstatic init(): ShieldActionDelegateSwift declarationoverride dynamic init()class · iOS 15.0+ · SDK 27.1
@objc class ShieldActionDelegateA class for an extension that handles shield actions. Subclass `ShieldActionDelegate` to allow client extensions to respond to user actions on a shield that covers an application or website. The system doesn't provide the name of a shielded ``Application``, ``WebDomain``, or ``ActivityCategory`` to preserve the Family Sharing group's privacy. Instead, the system uses a token to indicate what content it is shielding.
static init(): ShieldActionDelegateSwift declarationoverride dynamic init()handleActionForCompletionHandler(action: ShieldAction, application: Token<Application>, completionHandler: ((arg0: ShieldActionResponse) => void)): voidSwift declarationfunc handle(action: ShieldAction, for application: ApplicationToken, completionHandler: @escaping (ShieldActionResponse) -> Void)Allows the extension to respond to a user action when the system displays a shield over an application. - parameter action: The user's action. - parameter application: The application that the shield covers. - parameter completionHandler: A closure for your extension to call after you handle the user's action.
handleActionForCompletionHandler10232(action: ShieldAction, category: Token<ActivityCategory>, completionHandler: ((arg0: ShieldActionResponse) => void)): voidSwift declarationfunc handle(action: ShieldAction, for category: ActivityCategoryToken, completionHandler: @escaping (ShieldActionResponse) -> Void)Allows the extension to respond to a user action when the system displays a shield over an application or website because of its category. - parameter action: The user's action. - parameter category: The category of the application or website that the shield covers. - parameter completionHandler: A closure for your extension to call after you handle the user's action.
handleActionForCompletionHandler21179(action: ShieldAction, webDomain: Token<WebDomain>, completionHandler: ((arg0: ShieldActionResponse) => void)): voidSwift declarationfunc handle(action: ShieldAction, for webDomain: WebDomainToken, completionHandler: @escaping (ShieldActionResponse) -> Void)Allows the extension to respond to a user action when the system displays a shield over a website. - parameter action: The user's action. - parameter webDomain: The web domain that the shield covers. - parameter completionHandler: A closure for your extension to call after you handle the user's action.
No declarations were skipped in this snapshot.