Session Management

General functions for handling session recording

// Import the Metalitix logger from the 8th Wall Metalitix module.
import { getMetalitixLogger } from 'metalitix-aframe'
const logger = getMetalitixLogger()
FunctionDescription

logger.pauseSession()

Stop sending data, but do not close the session.

logger.resumeSession()

Start sending data again with the existing, open session.

logger.endSession()

Stop sending data and close the session.

logger.endSession(true)

Stop send data, close the session, and clear any custom field metrics.

logger.isRunning()

Returns true if the session has started and is actively sending data. Returns false otherwise, such as if the session is ended or paused.

Last updated