The Cmi5 Class

new Cmi5()

To use any methods, you will need to create a new instance of Cmi5. The credentials are obtained from the LMS automatically via the URL launch parameters.

Example

1
import Cmi5 from "@xapi/cmi5";
2
3
// Create Cmi5 instance
4
const cmi5: Cmi5 = new Cmi5();
5
6
// Initialize AU
7
cmi5.initialize();
Copied!

Returns

This returns a Cmi5 object which you can use to communicate with the LRS.
Last modified 1yr ago
Copy link