LessonSession object ready for the question loop.
List available lessons
Lessons are resolved from the courses defined in your config file. Calllessons.list() to fetch lessons across all configured courses:
id, name, type, and questionCount.
See the reference for the
full return type.
Where lessons come from
Lessons are derived from your course structure in OneRoster:- The SDK resolves course IDs from
timeback.config.json - It lists active course components
- For each component, it lists active component resources
- Each resource maps to a
Lessonobject
Courses must be set up before
lessons.list() returns results. See the onboarding
guide for how to get started.Start a lesson
Calllessons.start() with the lesson you want to begin:
LessonSession, a stateful object that manages the entire lesson lifecycle.
See the reference for
full parameter documentation.
What happens under the hood
When you calllessons.start(), two things happen:
- Server: the SDK calls PowerPath to check for an existing attempt or create a new one
- Client: the SDK starts an activity tracker automatically, so
TimeSpentEventheartbeats begin immediately
LessonSession tracks score, attempt, finalized, and other state that updates automatically as the session progresses.
See the reference for
all properties and methods.
Resume vs new attempt
By default,lessons.start() resumes an existing in-progress attempt if one exists. Set forceNew: true to always start a fresh attempt:
Framework integration
- React
Next steps
Question loop
Fetch questions and submit answers
Reference
Parameters, properties, methods, and return types