SimpleUserAction
public protocol SimpleUserAction : SyncUserAction
A synchronous user action that doesn’t need anything from the action context.
This is the simplest way to define a user action.
-
Do the action’s work.
Throws
Any error that occurs while doing the action’s work. Errors will be presented to the user by the action runner.Declaration
Swift
func perform() throws -> ResultType
Return Value
The result of running the action.