Default View Action
class DefaultViewAction(resources: Resources, iconId: Int, id: String, name: String, description: String = "", location: VisualAction.Location = VisualAction.Location.WrapContentDialog, isEnabled: (ViewActionAbility<*>) -> Boolean = { true }, isVisible: (ViewActionAbility<*>) -> Boolean = { true }, viewCreator: (ViewActionAbility<*>) -> View) : AbstractViewAction
实现了 ViewAction.
Author
M8Test, [email protected], https://m8test.com
Constructors
Link copied to clipboard
constructor(resources: Resources, iconId: Int, id: String, name: String, description: String = "", location: VisualAction.Location = VisualAction.Location.WrapContentDialog, isEnabled: (ViewActionAbility<*>) -> Boolean = { true }, isVisible: (ViewActionAbility<*>) -> Boolean = { true }, viewCreator: (ViewActionAbility<*>) -> View)
Functions
Link copied to clipboard
动作执行时会调用此方法, 用于构建用户界面.
Link copied to clipboard
获取描述信息, 表明 Action 的作用
Link copied to clipboard
获取动作显示的位置.
Link copied to clipboard
Link copied to clipboard
判断当前动作是否可用.
Link copied to clipboard
判断当前动作是否可见.
Link copied to clipboard
设置动作是否可用.
Link copied to clipboard
设置动作是否可见.
Link copied to clipboard
什么时候重新执行 isEnabled.
Link copied to clipboard
什么时候重新执行 isVisible.