public class SessionTracker
extends com.microsoft.appcenter.channel.AbstractChannelListener
| Constructor and Description |
|---|
SessionTracker(com.microsoft.appcenter.channel.Channel channel,
java.lang.String groupName)
Init.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearSessions()
Clear storage from saved session state.
|
void |
onActivityPaused()
Call this whenever an activity is paused to update session tracker state.
|
void |
onActivityResumed()
Call this whenever an activity is resumed to update session tracker state.
|
void |
onPreparingLog(com.microsoft.appcenter.ingestion.models.Log log,
java.lang.String groupName) |
public SessionTracker(com.microsoft.appcenter.channel.Channel channel,
java.lang.String groupName)
channel - channel to decorate.groupName - group name used to send generated logs.public void onPreparingLog(@NonNull
com.microsoft.appcenter.ingestion.models.Log log,
@NonNull
java.lang.String groupName)
onPreparingLog in interface com.microsoft.appcenter.channel.Channel.ListeneronPreparingLog in class com.microsoft.appcenter.channel.AbstractChannelListener@WorkerThread public void onActivityResumed()
@WorkerThread public void onActivityPaused()
public void clearSessions()