SessionState

class SessionState(var firstEventId: String, var firstEventTimestamp: String, var sessionId: String, var previousSessionId: String?, var sessionIndex: Int, var userId: String, var storage: String = "LOCAL_STORAGE", var eventIndex: Int? = null, var lastUpdate: Long? = null) : State

Stores the current Session information. Used in creating the client_session entity when sessionContext is configured.

See also

Constructors

Link copied to clipboard
constructor(firstEventId: String, firstEventTimestamp: String, sessionId: String, previousSessionId: String?, sessionIndex: Int, userId: String, storage: String = "LOCAL_STORAGE", eventIndex: Int? = null, lastUpdate: Long? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun startNewSession(eventId: String, eventTimestamp: Long)
Link copied to clipboard
fun updateForNextEvent(isSessionCheckerEnabled: Boolean)