APIs

Show:

factory to create blocks and block property

Constructor

BlockFactory

() Object

Returns:

Object:

instantiated BlockFactory

Methods

blocksLoaded

()

Get the status of modules, i.e.: loaded yet?

createBlock

(
  • block_id
  • i_playerData
  • i_placement
  • i_scene_id
)
Object

This is factory method produces block instances which will reside on the timeline and referenced within this channel instance. The factory will parse the blockCode and create the appropriate block type.

Parameters:

  • block_id Number
  • i_playerData String
  • i_placement String

    where does the block reside, scene or channel

  • i_scene_id Number

Returns:

Object:

reference to the block instance

initialize

()

Constructor

Returns:

Unique clientId.

loadBlockModules

()

Load all block modules via require js and fire event to subscribers when all loaded

Properties

Block.PLACEMENT_CHANNEL

String final static

block.PLACEMENT_CHANNEL indicates the insertion is on the timeline_channel

Block.PLACEMENT_IS_SCENE

String final static

block.PLACEMENT_IS_SCENE indicates the insertion is itself a Scene

Block.PLACEMENT_LISTS

String final static

block.PLACEMENT_LISTS indicates the insertion is inside a collection list such as the Collection Block or the Location based block. This event is used for example when building the list of available blocks in AddBlockView

Block.PLACEMENT_SCENE

String final static

block.PLACEMENT_SCENE indicates the insertion is inside a Scene

Events

BLOCKS_LOADED

final static

All blocks and related property modules loaded by require.js

Event Payload:

  • caller This