setAction

open fun setAction(action: ShortcutAction? = null)

Sets the new action for @self to be @action.

Parameters

action

The new action. If the @action is null, the nothing action will be used.