TechnologiesApp Extensions & System Integration

ManagedSettings

iOSmacOStvOSwatchOSvisionOS

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.

  • Cl
    ManagedSettingsStore
    A data store that applies settings to the current user or device.
  • Pr
    ManagedSettingsGroup
    A group of settings to manage.

Restriction Settings 11

Configure Screen Time restrictions for accounts, apps, media, and system features.

  • St
    AccountSettings
    An object that configures whether a user can modify their device's account settings.
  • St
    ApplicationSettings
    Constraints on the apps and categories of apps a user can run on their device.
  • St
    AppStoreSettings
    Constraints on a user's App Store settings.
  • St
    CellularSettings
    Constraints on the user's cellular networking settings.
  • St
    DateAndTimeSettings
    Constraints on the device's date and time settings.
  • St
    GameCenterSettings
    Constraints on the user's Game Center settings.
  • St
    MediaSettings
    Constraints on the media content the user can access.
  • St
    PasscodeSettings
    Constraints on a user's ability to change their device's passcode.
  • St
    SafariSettings
    Constraints on Safari's AutoFill and cookie behaviors.
  • St
    SiriSettings
    Constraints on the device's Siri settings.
  • St
    WebContentSettings
    An 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.

  • St
    ShieldSettings
    Constraints that indicate what apps and websites to cover with a shielding view.
  • En
    ShieldAction
    Constants that describe a user's action for your extension to handle.
  • En
    ShieldActionResponse
    Constants 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.

  • St
    Application
    A representation of an application on the user's device.
  • St
    WebDomain
    An object that represents a website.
  • St
    ActivityCategory
    An activity's category, such as Entertainment or Social.
  • St
    Token
    A 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.

  • St
    SettingMetadata
    Additional information about a configurable setting.
  • St
    BoundedSettingMetadata
    Additional information about a bounded setting.

Classes 1

  • Cl
    ShieldActionDelegate
    A class for an extension that handles shield actions.

Type Aliases 3

  • Ty
    ActivityCategoryToken
    A token that represents a category of app or website activity.
  • Ty
    ApplicationToken
    A representation of an application.
  • Ty
    WebDomainToken
    A representation of a web domain that preserves the user's privacy.

Extends 1

NotificationCenter
← App Extensions & System Integration