categories
TypeScriptget categories(): Array<_ManagedSettings_ActivityCategory>Swift declarationvar categories: Set<ActivityCategory> { get }A set of category instances selected by the user.
struct · iOS 15.0+ · SDK 27.1
struct FamilyActivitySelectionA collection of applications, categories, and web domains selected by the user. 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 <doc://com.apple.documentation/documentation/ManagedSettings> and <doc://com.apple.documentation/documentation/DeviceActivity> frameworks to set up and manage parental controls. > Important: If a user, parent, or guardian revokes authorization of your app, > any tokens that ``FamilyControls/FamilyActivitySelection`` provided while your app > was authorized are voided. For more information on prompting the user to select items, see ``FamilyControls/FamilyActivityPicker``.
get categories(): Array<_ManagedSettings_ActivityCategory>Swift declarationvar categories: Set<ActivityCategory> { get }A set of category instances selected by the user.
get webDomains(): Array<_ManagedSettings_WebDomain>Swift declarationvar webDomains: Set<WebDomain> { get }A set of web domain instances selected by the user.
get applications(): Array<_ManagedSettings_Application>Swift declarationvar applications: Set<Application> { get }A set of application instances selected by the user.
get categoryTokens(): Array<_ManagedSettings_Token<_ManagedSettings_ActivityCategory>>Swift declarationvar categoryTokens: Set<ActivityCategoryToken>Tokens that represent categories selected by the user.
set categoryTokens(value: Array<_ManagedSettings_Token<_ManagedSettings_ActivityCategory>>)Swift declarationvar categoryTokens: Set<ActivityCategoryToken>Tokens that represent categories selected by the user.
get webDomainTokens(): Array<_ManagedSettings_Token<_ManagedSettings_WebDomain>>Swift declarationvar webDomainTokens: Set<WebDomainToken>Tokens that represent web domains selected by the user.
set webDomainTokens(value: Array<_ManagedSettings_Token<_ManagedSettings_WebDomain>>)Swift declarationvar webDomainTokens: Set<WebDomainToken>Tokens that represent web domains selected by the user.
get applicationTokens(): Array<_ManagedSettings_Token<_ManagedSettings_Application>>Swift declarationvar applicationTokens: Set<ApplicationToken>Tokens that represent applications selected by the user.
set applicationTokens(value: Array<_ManagedSettings_Token<_ManagedSettings_Application>>)Swift declarationvar applicationTokens: Set<ApplicationToken>Tokens that represent applications selected by the user.
static initIncludeEntireCategory(includeEntireCategory: boolean): FamilyActivitySelectionSwift declarationinit(includeEntireCategory: Bool)Creates a new activity selection instance. - Parameter includeEntireCategory: A Boolean value that indicates whether the selection should include applications and web domains from the selected categories.
get includeEntireCategory(): booleanSwift declarationlet includeEntireCategory: BoolA Boolean value that indicates whether the selection should include applications and web domains from the selected categories.
static init(): FamilyActivitySelectionSwift declarationinit()Creates a new activity selection instance. Sets ``FamilyControls/FamilyActivitySelection/includeEntireCategory`` to `false`.
No declarations were skipped in this snapshot.