#plugins.core.action.manager

Action Manager Module.


#API Overview

Constants - Useful values which cannot be changed

Functions - API calls offered directly by the extension


#API Documentation

#Constants

Signatureplugins.core.action.manager.handlerIds <cp.prop: table of strings; read-only>
TypeConstant
DescriptionReturns a list of registered handler IDs.
NotesNone
Sourcesrc/plugins/core/action/manager/init.lua line 181

Signatureplugins.core.action.manager.handlers <cp.prop: table of handlers; read-only>
TypeConstant
DescriptionProvides access to the set of handlers registered with the manager. It
NotesNone
Sourcesrc/plugins/core/action/manager/init.lua line 172

#Functions

Signatureplugins.core.action.manager.addHandler(id, group, label) -> handler
TypeFunction
DescriptionAdds a new action handler with the specified unique ID and returns it for further configuration.
Parameters
  • id - The unique ID
  • group - The group the handler belongs to.
  • label - An optional label for the handler (over-riding a supplied i18n value)
Returns
  • The handler instance.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/action/manager/init.lua line 134

Signatureplugins.core.action.manager.getActivator(id) -> activator
TypeFunction
DescriptionReturns an activator with the specified ID. If it doesn't exist, it will be created. Future calls to get the same ID, and it will return the same instance each time.
Parameters
  • activatorId - The unique ID of the activator.
Returns
  • The activator with the specified ID.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/action/manager/init.lua line 205

Signatureplugins.core.action.manager.getHandler(id) -> handler
TypeFunction
DescriptionReturns an existing handler with the specified ID.
Parameters
  • id - The unique ID of the action handler.
Returns
  • The action handler, or nil
NotesNone
ExamplesNone
Sourcesrc/plugins/core/action/manager/init.lua line 192

Signatureplugins.core.action.manager.getURL(handlerId, action) -> string
TypeFunction
DescriptionGets a URL based on the Handler ID & Action Table.
Parameters
  • handlerId - The Handler ID
  • action The action table
Returns
  • A string
NotesNone
ExamplesNone
Sourcesrc/plugins/core/action/manager/init.lua line 114

Signatureplugins.core.action.manager.init() -> none
TypeFunction
DescriptionInitialises the module.
Parameters
  • None
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/plugins/core/action/manager/init.lua line 96