public class SessionClient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SESSION_PAUSE_EVENT_TYPE
The eventType recorded for session pause events
|
static java.lang.String |
SESSION_RESUME_EVENT_TYPE
The eventType recorded for session resume events
|
static java.lang.String |
SESSION_START_EVENT_TYPE
The eventType recorded for session start events
|
static java.lang.String |
SESSION_STOP_EVENT_TYPE
The eventType recorded for session stop events
|
Constructor and Description |
---|
SessionClient(com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext pinpointContext)
CONSTRUCTOR
|
Modifier and Type | Method and Description |
---|---|
long |
getRestartDelay() |
long |
getResumeDelay() |
void |
pauseSession()
Briefly pauses an application session.
|
void |
resumeSession()
Resumes an application session.
|
void |
startSession()
Start a session which records a _session.start event and saves that sessionId
to the AnalyticsClient to be used for recording future events.
|
void |
stopSession()
Stops a session which records a _session.stop event and flushes the events in localstorage
for submission.
|
java.lang.String |
toString()
Overridden toString method for testing
|
public static final java.lang.String SESSION_START_EVENT_TYPE
public static final java.lang.String SESSION_STOP_EVENT_TYPE
public static final java.lang.String SESSION_PAUSE_EVENT_TYPE
public static final java.lang.String SESSION_RESUME_EVENT_TYPE
public SessionClient(com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext pinpointContext)
pinpointContext
- The PinpointContext
public void startSession()
public void stopSession()
public void pauseSession()
public void resumeSession()
public java.lang.String toString()
toString
in class java.lang.Object
public long getRestartDelay()
public long getResumeDelay()
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.