Creates a command with alternative commands.
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
The title to display for the command.
The image to display next to the command's title. Only the
contextmenu system supports the display of an image, and only when the app is running in iOS.
The action to take after the user selects the command.
An object that contains data to associate with the command.
An array of alternatives for the command.
A newly initialized command object.