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

import Cmi5 from "@xapi/cmi5";

// Create Cmi5 instance
const cmi5: Cmi5 = new Cmi5();

// Initialize AU
cmi5.initialize();

Returns

This returns a Cmi5 object which you can use to communicate with the LRS.

Last updated