Constructor
new SessionStorageReporter(ps)
SessionStorageReporter constructor
Name | Type | Description |
---|---|---|
ps | module:JClicPlayer. | The |
Extends
- module:reports/Reporter.Reporter
Members
descriptionDetail :string
Additional info to display after the reporter's description
- string
descriptionKey :string
Description of this reporting system
- string
key :string
Key used to save the report into sessionStorage
- string
storage :external:Storage
Type of storage to be used. Defaults to window.sessionStorage
Methods
endActivity(score, numActions, solved)
This method should be called when the current activity finishes. Data about user's final results
on the activity will then be saved.
Name | Type | Description |
---|---|---|
score | number | The final score, usually in a 0-100 scale. |
numActions | number | The total number of actions done by the user to solve the activity |
solved | boolean |
|
endSequence()
Finalizes the current sequence
init(optionsopt) → {external:Promise}
Initializes this report system with an optional set of parameters.
Returns a Promise, fulfilled when the reporter is fully initialized.
Name | Type | Attributes | Description |
---|---|---|---|
options | object | <optional> | Initial settings passed to the reporting system |
- Type:
- external:Promise
saveCurrentReport()
Saves the current report data to sessionStorage