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

# setAllowedMenuItems(_:for:)

Sets the allowed menu item titles for the given language.

```
func setAllowedMenuItems(_ menuItems: Set<String>?, for language: Locale.Language)
```

## Parameters

`menuItems`

The set of menu item titles to allow, or `nil` to
remove the entry for `language`.

`language`

The language to associate with `menuItems`.

## Discussion

Use this method to specify which menu items the participant
application may display during an assessment session. Titles must
match the application’s localized menu item strings for the
corresponding language.

If multiple languages resolve to the same application localization,
the system combines their sets of allowed menu items.

---

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)