Learnosity Toolkit constructor module.
Methods
annotationsApp() → {object|null}
The Annotations API app instance, or null
if not loaded.
Since
- 0.1.0
Returns
- Type
- (object | null)
appInstance() → {object}
Returns the Items API app instance that the host page declared.
Since
- 0.1.0
Returns
- Type
- (object)
assessApp() → {object|null}
The Assess API app instance, or null
if not loaded.
Since
- 0.1.0
Returns
- Type
- (object | null)
eventsApp() → {object|null}
The Events API app instance, or null
if not loaded.
Since
- 0.1.0
Returns
- Type
- (object | null)
init(app)
Constructor method for Learnosity Toolkit.
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;
Parameters:
Name | Type | Description |
---|---|---|
app |
object | Items API app instance |
questionsApp() → {object|null}
The Questions API app instance, or null
if not loaded.
Since
- 0.1.0
Returns
- Type
- (object | null)