Diagnostic/metadata information for Author API.
Methods
diagnostics() → {object}
Returns an object of diagnostic information about the current app instance.
Since
- 2.0.0
Example
// Sample returned object
{
"apps": {
},
"versions": {
"assets": "v2.202.4-rc.2"
"concrete": "v2.202.4-rc.2"
"mapped": "v2.202"
"requested": "v2023.3.LTS"
"server": "v2023.3.LTS"
}
}
Returns
- Type
- (object)
filterEvent(event)
Which event(s) you want to listen for on the console.
You must call listen()
first to start broadcasting.
Pass any of the following:
- exact event (https://reference.learnosity.com/author-api/events) or;
*
for all events or;- left or right wildcards via
*
Since
- 2.0.0
Example
LT.listen();
LT.filterEvent('render*');
Parameters:
Name | Type | Description |
---|---|---|
event |
string |
listen(statusopt)
Enables or disabled any console logging of events.
Defaults to true
, turn off by passing a falsy.
Since
- 2.0.0
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
status |
boolean |
<optional> |