---
title: FamilyActivitySelection
framework: familycontrols
role: symbol
role_heading: Structure
path: familycontrols/familyactivityselection
---

# FamilyActivitySelection

A collection of applications, categories, and web domains selected by the user.

## Declaration

```swift
struct FamilyActivitySelection
```

## Overview

Overview To protect the user’s privacy, FamilyActivitySelection holds opaque values that represent categories, applications, and web domains selected by the user. You can then pass these opaque values to instances and methods from the Managed Settings and Device Activity frameworks to set up and manage parental controls. important: If a user, parent, or guardian revokes authorization of your app, any tokens that FamilyActivitySelection provided while your app was authorized are voided. For more information on prompting the user to select items, see FamilyActivityPicker.

## Topics

### Accessing selected categories

- [categories](familycontrols/familyactivityselection/categories.md)
- [categoryTokens](familycontrols/familyactivityselection/categorytokens.md)
- [init(includeEntireCategory:)](familycontrols/familyactivityselection/init(includeentirecategory:).md)

### Accessing selected applications

- [applications](familycontrols/familyactivityselection/applications.md)
- [applicationTokens](familycontrols/familyactivityselection/applicationtokens.md)

### Accessing selected web domains

- [webDomains](familycontrols/familyactivityselection/webdomains.md)
- [webDomainTokens](familycontrols/familyactivityselection/webdomaintokens.md)

### Creating activity selections

- [init()](familycontrols/familyactivityselection/init().md)

### Comparing activity selections

- [includeEntireCategory](familycontrols/familyactivityselection/includeentirecategory.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)

## See Also

### Activity selections

- [FamilyActivityPicker](familycontrols/familyactivitypicker.md)
