Contents

setAllowedMenuItems(_:for:)

Sets the allowed menu item titles for the given language.

Declaration

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.