One Logo Pool Ball
ManagedSettingsUI · IOS API REFERENCE

ShieldConfigurationDataSource

class · iOS 15.0+ · SDK 27.1

@objc class ShieldConfigurationDataSource

The base class for the principal object of an app extension that configures a shield's appearance. You can create an extension to customize the appearance of the shields that the system uses to cover an application or website. The system provides your extension with the display names, bundle identifiers, and domains for each application, website, or category it shields. Your extension is expected to return an appropriate configuration as quickly as possible, in order to provide the best possible user experience. To protect the Family Sharing group's privacy, your extension runs in a sandbox. This sandbox prevents your extension from making network requests or moving sensitive content outside the extension's address space. The system provides a default appearance for any methods that your subclass doesn't override, or if it takes too long to return a configuration.

Members (5)

init · iOS 15.0+

init

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

configuration

TypeScript
configurationShieldingIn(application: _ManagedSettings_Application, category: _ManagedSettings_ActivityCategory): ShieldConfiguration
Swift declaration
func configuration(shielding application: Application, in category: ActivityCategory) -> ShieldConfiguration

Requests a configuration to use for a shield that covers an application because of its category. - Parameter application: The application the shield covers. - Parameter category: The category of the application that the shield covers. - Returns: The shield to display.

method · iOS 15.0+

configuration

TypeScript
configurationShieldingIn69477(webDomain: _ManagedSettings_WebDomain, category: _ManagedSettings_ActivityCategory): ShieldConfiguration
Swift declaration
func configuration(shielding webDomain: WebDomain, in category: ActivityCategory) -> ShieldConfiguration

Requests a configuration to use for a shield that covers a website because of its category. - Parameter webDomain: The website that the shield covers. - Parameter category: The category of the website that the shield covers. - Returns: The shield to display.

method · iOS 15.0+

configuration

TypeScript
configurationShielding(application: _ManagedSettings_Application): ShieldConfiguration
Swift declaration
func configuration(shielding application: Application) -> ShieldConfiguration

Requests a configuration to use for a shield that covers an application. - Parameter application: The application the shield covers. - Returns: The shield to display.

method · iOS 15.0+

configuration

TypeScript
configurationShielding90850(webDomain: _ManagedSettings_WebDomain): ShieldConfiguration
Swift declaration
func configuration(shielding webDomain: WebDomain) -> ShieldConfiguration

Requests a configuration to use for a shield that covers a website. - Parameter webDomain: The website that the shield covers. - Returns: The shield to display.

Skipped declarations

No declarations were skipped in this snapshot.

All ManagedSettingsUI types →