springroll.ContainerPlugin Class

Module: Core

Responsible for creating properties, methods to the SpringRoll Container when it's created.

var plugin = new ContainerPlugin();
plugin.setup = function()
{
    // Do setup here
};

Constructor

springroll.ContainerPlugin

(
  • [priority=0]
)

Parameters:

  • [priority=0] Int optional

    The priority, higher priority plugins are setup, preloaded and destroyed first.

close

()

Defined in close:61

Called when an application has begun to be closed.

closed

()

Defined in closed:67

Called when an application is closed completely.

open

()

Defined in open:47

Called when an application is opening and before the app has completely finished loading.

opened

()

Defined in opened:54

Called when an application is opening and before the app has completely finished loading.

setup

()

Defined in setup:40

When the Container is being initialized. This function is bound to the Container. This should be overridden.

teardown

()

Defined in teardown:73

When the Container is being destroyed. This function is bound to the Container. This should be overridden.

priority

Int private

Defined in priority:31

The priority of the plugin. Higher numbers handled first. This should be set in the constructor of the extending ContainerPlugin.

Default: 0