Class: abstract Plugin<Config>
Abstract base class for all plugins, extending Module
Extends
Module
Extended by
Type Parameters
• Config = any
Constructors
new Plugin()
new Plugin<
Config>(ctx):Plugin<Config>
Constructor for the Plugin class
Parameters
• ctx: Context
The VxdkContext instance
Returns
Plugin<Config>
Overrides
Module.constructor
Defined in
modules/common/module.ts:55 (opens in a new tab)
Properties
hooks
hooks:
Hook<Plugin<Config>>
Inherited from
Module.hooks
Defined in
modules/common/module.ts:22 (opens in a new tab)
name
abstractname:string
Inherited from
Module.name
Defined in
modules/common/module.ts:21 (opens in a new tab)
type
readonlytype:PluginType=PluginType.PLUGIN
Defined in
modules/common/module.ts:49 (opens in a new tab)
Accessors
bridge
getprotectedbridge():PlatformBridgeController
Protected getter for the bridge instance
Returns
PlatformBridgeController
Defined in
modules/common/module.ts:85 (opens in a new tab)
controller
getprotectedcontroller():Controller
Protected getter for the controller instance
Returns
Defined in
modules/common/module.ts:78 (opens in a new tab)
emit
getprotectedemit(): (name,data?) =>void
Protected getter for the 'emit' event emission method
Returns
Function
Parameters
• name: string | number
• data?: undefined
Returns
void
Defined in
modules/common/module.ts:128 (opens in a new tab)
emitIfChanged
getprotectedemitIfChanged(): (name,data) =>void
Protected getter for the 'emitIfChanged' event emission method
Returns
Function
Parameters
• name: string | number
• data: any
Returns
void
Defined in
modules/common/module.ts:135 (opens in a new tab)
events
getprotectedevents():string[]
Protected getter for the events array
Returns
string[]
Array of event names
Defined in
modules/common/module.ts:114 (opens in a new tab)
logger
getprotectedlogger():Logger
Protected getter for the logger instance
Returns
Logger
Logger instance for this module
Inherited from
Module.logger
Defined in
modules/common/module.ts:40 (opens in a new tab)
off
getprotectedoff(): (name,listener) =>void
Protected getter for the 'off' event unbinding method
Returns
Function
Parameters
• name: string | number
• listener: Listener<void>
Returns
void
Defined in
modules/common/module.ts:99 (opens in a new tab)
on
getprotectedon(): (name,listener) =>Disposable
Protected getter for the 'on' event binding method
Returns
Function
Parameters
• name: string | number
• listener: Listener<void>
Returns
Defined in
modules/common/module.ts:92 (opens in a new tab)
once
getprotectedonce(): (name,listener) =>void
Protected getter for the 'once' event binding method
Returns
Function
Parameters
• name: string | number
• listener: Listener<void>
Returns
void
Defined in
modules/common/module.ts:106 (opens in a new tab)
storage
getprotectedstorage():StorageController
Protected getter for the storage instance
Returns
StorageController
Defined in
modules/common/module.ts:71 (opens in a new tab)
Methods
connectedCallback()
connectedCallback():
void
Callback method called when the module is connected
Returns
void
Inherited from
Module.connectedCallback
Defined in
modules/common/module.ts:28 (opens in a new tab)
disconnectedCallback()
disconnectedCallback():
void
Callback method called when the module is disconnected
Returns
void
Inherited from
Module.disconnectedCallback
Defined in
modules/common/module.ts:34 (opens in a new tab)
getConfig()
protectedgetConfig():Config
Protected method to get the plugin configuration
Returns
Config
The plugin configuration