public interface SessionController
extends com.snowplowanalytics.snowplow.internal.session.SessionConfigurationInterface
| Modifier and Type | Method and Description |
|---|---|
int |
getBackgroundIndex()
Count the number of background transitions in the current session.
|
int |
getForegroundIndex()
Count the number of foreground transitions in the current session.
|
String |
getSessionId()
The session identifier.
|
int |
getSessionIndex()
The session index.
|
String |
getUserId()
The session user identifier.
|
boolean |
isInBackground()
Whether the app is currently in background state or in foreground state.
|
void |
pause()
Pause the session tracking.
|
void |
resume()
Resume the session tracking.
|
void |
startNewSession()
Expire the current session also if the timeout is not triggered.
|
int getSessionIndex()
@NonNull String getSessionId()
@NonNull String getUserId()
boolean isInBackground()
int getBackgroundIndex()
int getForegroundIndex()
void pause()
void resume()
void startNewSession()