Class: DialogManager

mmir. DialogManager

new mmir.DialogManager()

The DialogManager gives access to the most commonly used functions of the framework.

On initialization, the DialogManager also creates the mmir.DialogEngine and returns it as the second argument of the init() function's callback (or the Promise's triggered callbacks). In addition, the DialogEngine is exported as module "mmirf/dialogEngine" via RequireJS' define() function.

Example
//initialization of inputManager
require('mmirf/dialogManager').init().then( function(dialogManagerInstance, dialogEngineInstance){
		//do something
});

Requires

  • module:mmir.ControllerManager
  • module:mmir.PresentationManager
  • module:mmir.ModelManager
  • module:mmir.require
  • module:mmir._define

Members

_instance

privateonPageRenderedFuncfunction

See:
  • mmir.DialogManager#getOnPageRenderedHandler
  • mmir.DialogManager#setOnPageRenderedHandler

Methods

raise(eventName, eventData)

This function raises an event.
Name Type Description
eventName String The name of the event which is to be raised
eventData Object optional OPTIONAL Data belonging to the event
Throws:
if this function is invoked while the internal event/state engine (i.e. mmir.DialogEngine is not initialized yet
Type
Error