Assessment/App

Learnosity Toolkit constructor module.

Methods

annotationsApp() → {object|null}

The Annotations API app instance, or null if not loaded.

Since
0.1.0
Returns: 
object | null

appInstance() → {object}

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

Since
0.1.0
Returns: 
object

assessApp() → {object|null}

The Assess API app instance, or null if not loaded.

Since
0.1.0
Returns: 
object | null

eventsApp() → {object|null}

The Events API app instance, or null if not loaded.

Since
0.1.0
Returns: 
object | null

init(app)

Constructor method for Learnosity Toolkit.

Parameters:
NameTypeDescription
appobject

Items API app instance

Since
0.1.0
Example
// Declare and set your variable with the Items API LearnosityItems.init() method
const itemsApp = LearnosityItems.init(signedConfigObject);

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

// Can be handy in the global scope for development
window.LT = LT;

questionsApp() → {object|null}

The Questions API app instance, or null if not loaded.

Since
0.1.0
Returns: 
object | null