-
@RestrictTo(value = RestrictTo.Scope.LIBRARY_GROUP) public class SessionManager extends BaseSessionManager
-
-
Field Summary
Fields Modifier and Type Field Description private longappLastSeenprivate intlastVisitTimeprivate longuserLastVisitTs
-
Constructor Summary
Constructors Constructor Description SessionManager(CleverTapInstanceConfig config, CoreMetaData coreMetaData, Validator validator, LocalDataStore localDataStore)
-
Method Summary
Modifier and Type Method Description longgetAppLastSeen()voidsetAppLastSeen(long appLastSeen)intgetLastVisitTime()longgetUserLastVisitTs()voidcheckTimeoutSession()voiddestroySession()Destroys the current session and resets firstSession flag, if first session lasts more than 20 minutesFor an app like Music Player user installs an app and plays music and then moves to background. voidlazyCreateSession(Context context)-
-
Constructor Detail
-
SessionManager
SessionManager(CleverTapInstanceConfig config, CoreMetaData coreMetaData, Validator validator, LocalDataStore localDataStore)
-
-
Method Detail
-
getAppLastSeen
long getAppLastSeen()
-
setAppLastSeen
void setAppLastSeen(long appLastSeen)
-
getLastVisitTime
int getLastVisitTime()
-
getUserLastVisitTs
long getUserLastVisitTs()
-
checkTimeoutSession
void checkTimeoutSession()
-
destroySession
void destroySession()
Destroys the current session and resets firstSession flag, if first session lasts more than 20 minutesFor an app like Music Player
user installs an app and plays music and then moves to background.User then re-launches an App after listening music in background for more than 20 minutes, in this casesince an app is not yet killed due to background music app installed event must not be raised by SDK
-
lazyCreateSession
void lazyCreateSession(Context context)
-
-
-
-