Contents

menu(contents:)

Declaration

func menu(contents: AVLegibleMediaOptionsMenuController.MenuContents = []) -> UIMenu?
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

Builds a legible options menu using the specified contents.

Returns nil if the requested menu type cannot be built due to missing content (e.g., requesting track selection without a player).

See Also

Managing the menu