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.
Declaration
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.