Class: MasterController

Angular. MasterController

new MasterController()

In the demo application, the MasterController is persistent throughout an experiment session and provides a number of 'session-wide' facilities. These include restarting a session, exposing the TrialData service, changing the language, configuring hot keys, showing alerts, and blacking out the screen.

The hot keys are configured using the angular-hotkeys module. In particular, pressing 'd' twice will toggle debugging mode. When in debugging mode, the right arrow key will allow the user to advance to the next slide. Also, in debugging mode, nothing blocks the user from advancing through slides (e.g., the user can advance irrespective of whether or not Max is ready).

Source:

Namespaces

$scope

Methods

resetInactivityTimeout() → {undefined}

Resets the inactivity timeout.

The demo application ships with an inactivity timeout. If after five minutes no interaction with the experiment has occurred, this timeout fires and calls $scope#startOver method.

Source:
Returns:
Type
undefined

setLanguageToDefault() → {undefined}

Sets the language to the default language as specified in the CustomConfiguration module.

Source:
Returns:
Type
undefined