ManagedSettings applies Screen Time restrictions and shields, configuring settings such as account changes and activity categories on a device across iOS, macOS, tvOS, and watchOS. You write settings into a ManagedSettingsStore, grouping related options through types like AccountSettings, ApplicationSettings, SafariSettings, WebContentSettings, PasscodeSettings, and CellularSettings, and organize them with the ManagedSettingsGroup protocol. To restrict access, you shield applications and web domains using ShieldSettings, referencing them with Application, WebDomain, ActivityCategory, and Token, and respond to user interaction through ShieldAction and ShieldActionResponse.
Essentials 2
Store and group the managed settings you apply to a device.
- ClManagedSettingsStoreA data store that applies settings to the current user or device.
- PrManagedSettingsGroupA group of settings to manage.
Restriction Settings 11
Configure Screen Time restrictions for accounts, apps, media, and system features.
- StAccountSettingsAn object that configures whether a user can modify their device's account settings.
- StApplicationSettingsConstraints on the apps and categories of apps a user can run on their device.
- StAppStoreSettingsConstraints on a user's App Store settings.
- StCellularSettingsConstraints on the user's cellular networking settings.
- StDateAndTimeSettingsConstraints on the device's date and time settings.
- StGameCenterSettingsConstraints on the user's Game Center settings.
- StMediaSettingsConstraints on the media content the user can access.
- StPasscodeSettingsConstraints on a user's ability to change their device's passcode.
- StSafariSettingsConstraints on Safari's AutoFill and cookie behaviors.
- StSiriSettingsConstraints on the device's Siri settings.
- StWebContentSettingsAn object that configures which websites a user can access.
Shielding 3
Restrict access to applications and web content, and respond to user interaction with the shield.
- StShieldSettingsConstraints that indicate what apps and websites to cover with a shielding view.
- EnShieldActionConstants that describe a user's action for your extension to handle.
- EnShieldActionResponseConstants your extension that handles shield actions can use to tell the system how to respond to an action.
Restriction Targets 4
Reference the apps, web domains, categories, and tokens that settings and shields apply to.
- StApplicationA representation of an application on the user's device.
- StWebDomainAn object that represents a website.
- StActivityCategoryAn activity's category, such as Entertainment or Social.
- StTokenA representation of an activity, such as an app or website, that doesn't reveal its identity.
Setting Metadata 2
Describe and constrain the values that individual managed settings can take.
- StSettingMetadataAdditional information about a configurable setting.
- StBoundedSettingMetadataAdditional information about a bounded setting.
Classes 1
- ClShieldActionDelegateA class for an extension that handles shield actions.
Type Aliases 3
- TyActivityCategoryTokenA token that represents a category of app or website activity.
- TyApplicationTokenA representation of an application.
- TyWebDomainTokenA representation of a web domain that preserves the user's privacy.