Creates an action.
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
The title to display for the action.
The image to display next to the action's
title. Only the
contextmenu system supports the display of an image, and only when the app is running in iOS.
The unique identifier for the action. Specify
nilto let this method create a unique identifier for you.
The handler invoked after the user selects the action. This handler has the following parameter:
The action selected by the user.
A newly initialized action object.