Event type
Optionallistener: (event: TData) => void
Event listener
Add new event listener
Event type. If the event type is xAPI, the listener's event parameter will be of type XAPIEvent. Any dispatched XAPIEvent will trigger the xAPI event.
Event listener
OptionalthisArg: ThisType<unknown>
Optionally specify the listener's this value
Add new event listener that will be fired only once
Event type. If the event type is xAPI, the listener's event parameter will be of type XAPIEvent. Any dispatched XAPIEvent will trigger the xAPI event.
Event listener
OptionalthisArg: ThisType<unknown>
Optionally specify the listener's this value
Dispatch event
Event object or event type as string
OptionaleventData: TData
Custom event data (used when event type as string is used as first argument)
Optionalextras: { bubbles?: boolean; external?: boolean }Returns the file path of a file in the current library
The path to the file relative to the library folder
The full path to the file
Is the library standalone or not? Not being standalone, means it is included in another library
Mark the activity as started. Triggers the attempted xAPI event the
first time it's called for an instance.
Helper function to create xAPI completed events.
Use triggerXAPIScored instead
Helper function to create scored xAPI events
Will be set as the 'raw' value of the score object
Will be set as the "max" value of the score object
Short form of adl verb
Is this a statement from a completed activity?
Is this a statement from an activity that was done successfully?
Remove event listener If no listener is specified, all listeners will be removed