Skip to content

Session

Public surface (session): getDeviceEvents · hitSessionId (getter)

getDeviceEvents(): Promise<unknown[]>
import mobilelocker from '@mobilelocker/javascript-sdk'
const events = await mobilelocker.session.getDeviceEvents()
Environment Behavior
Inside Mobile Locker GET …/session/events
Outside (local dev) Events buffered in IndexedDB via localforage

Presentation-scoped event helpers also live on presentation (getEvents, getDeviceEvents alias).

Live vs practice recording is controlled via log.liveMode / log.practiceMode.

get hitSessionId(): string | null
const id = mobilelocker.session.hitSessionId
// Session id from JWT `hit_uuid` when the presentation was opened via a shared
// CDN link; null if not applicable or not yet created.