react-native-tracker.sessionstate
Home > @snowplow/react-native-tracker > SessionState
SessionState interface
Current session state that is tracked in events.
Signature:export interface SessionState
Properties
| Property | Type | Description |
|---|---|---|
| eventIndex? | number | (Optional) Optional index of the current event in the session |
| firstEventId? | string | (Optional) The optional identifier of the first event for this session |
| firstEventTimestamp? | string | (Optional) Optional date-time timestamp of when the first event in the session was tracked |
| previousSessionId? | string | (Optional) The previous session identifier for this user |
| sessionId | string | An identifier for the session |
| sessionIndex | number | The index of the current session for this user |
| storageMechanism | string | The mechanism that the session information has been stored on the device |
| userId | string | An identifier for the user of the session |