registerPlugin(pluginName, plugin)

Item

Value

Scope

private

Returns

Akita

Parameters

Parameter

Description

String pluginName

A name for your plugin

Function plugin

A self executing function that contains your plugin logic

This allows you to register a plugin which can then be loaded by a player instance. The passed in function requires a di parameter.di is an object which gives you access to the instance eventEmitter and config. You will need to call initPlugin to initialise the plugin within a player instance