One Logo Pool Ball
ManagedSettings · IOS API REFERENCE

ShieldActionDelegate

class · iOS 15.0+ · SDK 27.1

@objc class ShieldActionDelegate

A 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.

Members (4)

init · iOS 15.0+

init

TypeScript
static init(): ShieldActionDelegate
Swift declaration
override dynamic init()
method · iOS 15.0+

handle

TypeScript
handleActionForCompletionHandler(action: ShieldAction, application: Token<Application>, completionHandler: ((arg0: ShieldActionResponse) => void)): void
Swift declaration
func 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.

method · iOS 15.0+

handle

TypeScript
handleActionForCompletionHandler10232(action: ShieldAction, category: Token<ActivityCategory>, completionHandler: ((arg0: ShieldActionResponse) => void)): void
Swift declaration
func 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.

method · iOS 15.0+

handle

TypeScript
handleActionForCompletionHandler21179(action: ShieldAction, webDomain: Token<WebDomain>, completionHandler: ((arg0: ShieldActionResponse) => void)): void
Swift declaration
func 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.

Skipped declarations

No declarations were skipped in this snapshot.

All ManagedSettings types →