Authoring/App

Learnosity Toolkit constructor module.

Methods

appInstance() → {object}

Returns the Author API app instance that the host page declared.

Since
2.0.0
Returns
Type
(object)

init(app)

Constructor method for Learnosity Toolkit.

Since
2.0.0
Example
// Declare and set your variable with the Author API LearnosityAuthor.init() method
const authorApp = LearnosityAuthor.init(signedConfigObject);

// Pass that app instance to the Toolkit constructor in the Author API readyListener()
import { LT } from '[path/to/tookit/index]';
LT.init(authorApp);

// Can be handy in the global scope for development
window.LT = LT;
Parameters:
Name Type Description
app object

Author API app instance

questionEditorApp() → {object|null}

The Question Editor API app instance, or null if not loaded.

Since
2.2.0
Returns
Type
(object | null)