Optional
contentThe id of the content object to which this state belongs.
Optional
contextAn identifier that can be used to have multiple states for one content - user tuple. The identifier is provided by the implementation and its use is optional. contextId is an extension of the NodeJS library and not standard H5P.
Used by the h5p.js client
Indicates that data should be invalidated when content changes. The server then deletes the state when the content is updated.
Indicates that data should be included in the H5PIntegration object when content is first loaded. (This is usually on. It is set by the content type.)
The id provided by the h5p.js client call
Optional
userThe id of the user to which the state belongs.
The actual user state as string. This is typically a serialized JSON string that the content type generates when called by the H5P client. We don't need to know what is in it for the server
Saves the current state of users, so that users can resume where they left off.