<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AutomaticAssessmentConfiguration",
  "identifier" : "/documentation/AutomaticAssessmentConfiguration/AEAssessmentParticipantConfiguration/allowedMenuItems(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Automatic Assessment Configuration",
      "AutomaticAssessmentConfiguration"
    ],
    "preciseIdentifier" : "s:So36AEAssessmentParticipantConfigurationC019AutomaticAssessmentC0E16allowedMenuItems3forShySSGSg10Foundation6LocaleV8LanguageV_tF"
  },
  "title" : "allowedMenuItems(for:)"
}
-->

# allowedMenuItems(for:)

Returns the set of allowed menu item titles for the given language,
or `nil` if no items have been configured for that language.

```
func allowedMenuItems(for language: Locale.Language) -> Set<String>?
```

## Parameters

`language`

The language for which to return allowed
menu items.

## Discussion

Menu item titles are matched against the participant application’s
localized menu items at the time the assessment session begins.
The system resolves each language to the best-matching localization
the application bundle provides, so an exact locale match is not
required.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)