ActionGroup

interface ActionGroup

ActionGroup 用于管理 Action, 并将其进行分组.

Author

M8Test, [email protected], https://m8test.com

Inheritors

Functions

Link copied to clipboard
abstract fun getActions(): List<Action<*>>

获取分组中所有动作.

Link copied to clipboard
abstract fun getId(): String

获取分组 id, 必须唯一.

Link copied to clipboard
abstract fun getName(): String

获取分组名.

Link copied to clipboard
abstract fun registerAction(action: Action<*>): Result

注册指定动作到动作组, 如果失败则抛出异常.

Link copied to clipboard
abstract fun unregisterAction(action: Action<*>): Result

取消注册指定动作.