One Logo Pool Ball
ManagedSettings · IOS API REFERENCE

ShieldSettings

struct · iOS 15.0+ · SDK 27.1

struct ShieldSettings

Constraints that indicate what apps and websites to cover with a shielding view.

Members (12)

get · iOS 15.0+

webDomains

TypeScript
static get webDomains(): SettingMetadata<Array<Token<WebDomain>>>
Swift declaration
static let webDomains: SettingMetadata<Set<WebDomainToken>>

The metadata for the configuration that specifies websites for the system to shield. Use `webDomains` to access the metadata for ``ShieldSettings/webDomains-swift.property``. The default value is an empty set.

get · iOS 15.0+

webDomains

TypeScript
get webDomains92061(): (Array<Token<WebDomain>>) | null
Swift declaration
var webDomains: Set<WebDomainToken>? { get set }

Websites for the system to cover with a shielding view. When the user visits a website in this list of domains, the system calls your extension that customizes the shield’s appearance. When the user taps on a button the shield displays, the system calls your extension that handles user actions. If your app doesn't provide a list of domains to shield, this value is `nil`. Your app can shield up to 50 web domain tokens at once.

set · iOS 15.0+

webDomains

TypeScript
set webDomains92061(value: (Array<Token<WebDomain>>) | null)
Swift declaration
var webDomains: Set<WebDomainToken>? { get set }

Websites for the system to cover with a shielding view. When the user visits a website in this list of domains, the system calls your extension that customizes the shield’s appearance. When the user taps on a button the shield displays, the system calls your extension that handles user actions. If your app doesn't provide a list of domains to shield, this value is `nil`. Your app can shield up to 50 web domain tokens at once.

get · iOS 15.0+

applications

TypeScript
static get applications(): SettingMetadata<Array<Token<Application>>>
Swift declaration
static let applications: SettingMetadata<Set<ApplicationToken>>

The metadata for the configuration that specifies apps for the system to cover with a shielding view. The default value is an empty set.

get · iOS 15.0+

applications

TypeScript
get applications26206(): (Array<Token<Application>>) | null
Swift declaration
var applications: Set<ApplicationToken>? { get set }

Applications for the system to cover with a shielding view. When the user launches an application in this set, the system calls your extension that customizes the shield’s appearance. When the user taps on a button the shield displays, the system calls your extension that handles user actions. If your app doesn't provide a list of applications to shield, this value is `nil`. Your app can shield up to 50 application tokens at once.

set · iOS 15.0+

applications

TypeScript
set applications26206(value: (Array<Token<Application>>) | null)
Swift declaration
var applications: Set<ApplicationToken>? { get set }

Applications for the system to cover with a shielding view. When the user launches an application in this set, the system calls your extension that customizes the shield’s appearance. When the user taps on a button the shield displays, the system calls your extension that handles user actions. If your app doesn't provide a list of applications to shield, this value is `nil`. Your app can shield up to 50 application tokens at once.

get · iOS 15.0+

webDomainCategories

TypeScript
static get webDomainCategories(): SettingMetadata<ShieldSettings_ActivityCategoryPolicy<WebDomain>>
Swift declaration
static let webDomainCategories: SettingMetadata<ShieldSettings.ActivityCategoryPolicy<WebDomain>>

The metadata for the configuration that specifies categories of websites for the system to shield. Use `webDomainCategories` to access the metadata for ``ShieldSettings/webDomainCategories-swift.property``. The default value is ``ShieldSettings/ActivityCategoryPolicy/none``.

get · iOS 15.0+

webDomainCategories

TypeScript
get webDomainCategories59764(): (ShieldSettings_ActivityCategoryPolicy<WebDomain>) | null
Swift declaration
var webDomainCategories: ShieldSettings.ActivityCategoryPolicy<WebDomain>? { get set }

Categories of websites for the system to cover with a shielding view. When the user visits a website in one of these categories, the system calls your extension that customizes the shield’s appearance. When the user taps on a button the shield displays, the system calls your extension that handles user actions. If your app doesn't provide a list of website categories to shield, this value is `nil`. Your app can shield up to 50 category tokens and specify up to 50 web domain tokens exceptions at once.

set · iOS 15.0+

webDomainCategories

TypeScript
set webDomainCategories59764(value: (ShieldSettings_ActivityCategoryPolicy<WebDomain>) | null)
Swift declaration
var webDomainCategories: ShieldSettings.ActivityCategoryPolicy<WebDomain>? { get set }

Categories of websites for the system to cover with a shielding view. When the user visits a website in one of these categories, the system calls your extension that customizes the shield’s appearance. When the user taps on a button the shield displays, the system calls your extension that handles user actions. If your app doesn't provide a list of website categories to shield, this value is `nil`. Your app can shield up to 50 category tokens and specify up to 50 web domain tokens exceptions at once.

get · iOS 15.0+

applicationCategories

TypeScript
static get applicationCategories(): SettingMetadata<ShieldSettings_ActivityCategoryPolicy<Application>>
Swift declaration
static let applicationCategories: SettingMetadata<ShieldSettings.ActivityCategoryPolicy<Application>>

The metadata for the configuration that specifies categories of apps for the system to cover with a shielding view. The default value is ``ShieldSettings/ActivityCategoryPolicy/none``.

get · iOS 15.0+

applicationCategories

TypeScript
get applicationCategories61189(): (ShieldSettings_ActivityCategoryPolicy<Application>) | null
Swift declaration
var applicationCategories: ShieldSettings.ActivityCategoryPolicy<Application>? { get set }

Categories of apps for the system to cover with a shielding view. When the user launches an application in one of these categories, the system calls your extension that customizes the shield’s appearance. When the user taps on a button the shield displays, the system calls your extension that handles user actions. Your app is exempt from `.all`. If your app doesn't provide a list of categories to shield, this value is `nil`. Your app can shield up to 50 category tokens and specify up to 50 application tokens exceptions at once.

set · iOS 15.0+

applicationCategories

TypeScript
set applicationCategories61189(value: (ShieldSettings_ActivityCategoryPolicy<Application>) | null)
Swift declaration
var applicationCategories: ShieldSettings.ActivityCategoryPolicy<Application>? { get set }

Categories of apps for the system to cover with a shielding view. When the user launches an application in one of these categories, the system calls your extension that customizes the shield’s appearance. When the user taps on a button the shield displays, the system calls your extension that handles user actions. Your app is exempt from `.all`. If your app doesn't provide a list of categories to shield, this value is `nil`. Your app can shield up to 50 category tokens and specify up to 50 application tokens exceptions at once.

Skipped declarations

No declarations were skipped in this snapshot.

All ManagedSettings types →