xAPI.js
  • xAPI.js
  • xAPI Wrapper Library
    • Introduction
    • Getting Started
    • The XAPI Class
    • Statement Resource
    • State Resource
    • Activity Profile Resource
    • Agent Profile Resource
    • About Resource
    • Agents Resource
    • Activities Resource
    • Helpers
    • Verbs
    • Attachment Usages
  • cmi5 Profile Library
    • Introduction
    • Getting Started
    • The Cmi5 Class
    • "cmi5 defined" Statement methods
    • "cmi5 allowed" Statement methods
    • Helpers
Powered by GitBook
On this page
  • new Cmi5()
  • Example
  • Returns

Was this helpful?

  1. cmi5 Profile Library

The Cmi5 Class

PreviousGetting StartedNext"cmi5 defined" Statement methods

Last updated 1 year ago

Was this helpful?

new Cmi5()

To use any methods, you will need to create a new instance of . 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 object which you can use to communicate with the LRS.

Cmi5
Cmi5