Session
Public surface (session): getDeviceEvents · hitSessionId (getter)
Device events
Section titled “Device events”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.
Hit session id
Section titled “Hit session id”get hitSessionId(): string | nullconst 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.API reference
Section titled “API reference”- Module:
session