An interface to the user's family activity data.
To fetch a user's family activity data, use
``FamilyActivityData/installedApplications``,
``FamilyActivityData/visitedWebDomains`` or
``FamilyActivityData/activityCategories``
based on the type of data you're interested in.
> Important: You must add the Family Controls App & Website Usage capability to your app before you
attempt to access variables on this class.
This capability adds the
<doc://com.apple.documentation/documentation/bundleresources/entitlements/com_apple_developer_family-controls_app-and-website-usage>
to your app.
In a compatible iPad or iPhone app running in visionOS or macOS, attempts to fetch user data always fail.
For more information, see
<doc://com.apple.documentation/documentation/xcode/adding-capabilities-to-your-app/>.
Additionally, your app must be authorized with data access via ``AuthorizationCenter``
before attempting to fetch data. If your app is not authorized with data access, the
attempt will always fail.
Members (4)
get · iOS 26.4+
visitedWebDomains
TypeScript
get visitedWebDomains(): Promise<Array<_ManagedSettings_WebDomain>>
Swift declaration
var visitedWebDomains: [WebDomain] { get async throws }
An array of web domains visited by the current user.
The web domains will have both the `domain` and `token` populated.
> Important: Your app must be authorized via ``AuthorizationCenter`` and data access must be available
before attempting to access this variable or it will always throw.
get · iOS 26.4+
activityCategories
TypeScript
get activityCategories(): Promise<Array<_ManagedSettings_ActivityCategory>>
Swift declaration
var activityCategories: Set<ActivityCategory> { get async throws }
The set of all possible activity categories.
The categories will have both the `localizedDisplayName` and `token` populated.
> Important: Your app must be authorized via ``AuthorizationCenter`` and data access must be available
before attempting to access this variable or it will always throw.
get · iOS 26.4+
installedApplications
TypeScript
get installedApplications(): Promise<Array<_ManagedSettings_Application>>
Swift declaration
var installedApplications: [Application] { get async throws }
An array of applications installed by the current user.
The applications will have both the `bundleIdentifier` and `token` populated.
> Important: Your app must be authorized via ``AuthorizationCenter`` and data access must be available
before attempting to access this variable or it will always throw.