Interface: ApplicationPlugin

ApplicationPlugin

Any plugin that's usable for Application should contain these methods.

Example

import { ApplicationPlugin } from 'pixi.js';
class MyPlugin implements ApplicationPlugin
{
   static init(options)
   {
     // do something with options
   }
   static destroy()
   {
    // destruction code here
   }
}

Methods

destroy () void

Called when destroying Application, scoped to Application instance.

init (options) void

Called when Application is constructed, scoped to Application instance. Passes in options as the only argument, which are Application init options.

Name Type Description
options object

Application options.