Creates and returns an action object with the specified button information.
- watchOS 2.0+
The localized string to use as the button title for the action.
The style to apply to the action button. For a list of possible styles and their meanings, see
A block containing the code to execute when the user taps the action button. Use this block to perform whatever action is required to perform the associated task. For information about the format of this block, see
An initialized action object that you can display in an alert.
Use this method to create a button to display in an action sheet. In an action sheet, specifying an action with the
WKAlert style replaces the standard Cancel button provided by the system.