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(data){
		var dialogManagerInstance = data.manager;
		var dialogEngineInstance  = data.engine;
		//do something...
});

Extends

Members

_instance

Methods

Returns:
Type Description
Deferred

inherited 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.InputEngine is not initialized yet
Type
Error