<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -",
    "macOS: 26.4.0 -",
    "visionOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVLegibleMediaOptionsMenuController/menu(contents:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(cs)AVLegibleMediaOptionsMenuController(im)menuWithContents:"
  },
  "title" : "menu(contents:)"
}
-->

# menu(contents:)

iOS, iPadOS, Mac Catalyst, visionOS:

```
func menu(contents: AVLegibleMediaOptionsMenuController.MenuContents = []) -> UIMenu?
```

macOS:

```
func menu(contents: AVLegibleMediaOptionsMenuController.MenuContents = []) -> NSMenu?
```

## Parameters

`contents`

A set of values from the AVLegibleMediaOptionsMenuContents

## Return Value

A NSMenu ready to be presented by the client, or nil if the menu cannot be built

## Discussion

\abstract Builds a legible options menu using the specified contents.
\discussion Returns nil if the requested menu type cannot be built due to missing content (e.g., requesting track selection without a player).

---

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)