Authoring/Diagnostics

Diagnostic/metadata information for Author API.

Methods

diagnostics() → {object}

Returns an object of diagnostic information about the current app instance.

Since
2.0.0
Returns: 
object
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"
     }
 }

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 *
Parameters:
NameTypeDescription
eventstring
Since
2.0.0
Example
LT.listen();
LT.filterEvent('render*');

listen(statusopt)

Enables or disabled any console logging of events. Defaults to true, turn off by passing a falsy.

Parameters:
NameTypeAttributesDescription
statusboolean<optional>
Since
2.0.0