Skip to main content

resetContext

Starts a new viewing context in the same session.

Overview​

Call resetContext() on the session when the viewer moves to new content without a new session, for example a new program. It clears which panels count as viewed and engaged, and restarts time in session, so rules that depend on them start over.

Syntax​

fun resetContext()

Example​

sdk.onEventDataUpdated(metadataValues = listOf(nextEventId))
sdk.resetContext()