-
- All Implemented Interfaces:
-
androidx.lifecycle.DefaultLifecycleObserver,androidx.lifecycle.LifecycleObserver
public final class SessionManager implements DefaultLifecycleObserver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSessionManager.SessionEvent
-
Constructor Summary
Constructors Constructor Description SessionManager(Application application, Long sessionTimeout)
-
Method Summary
Modifier and Type Method Description final StringgetSessionId()final UnitsetSessionId(String sessionId)final UnitstartTracking(Function1<SessionManager.SessionEvent, Unit> eventCallback)final Unitreset()UnitonStart(LifecycleOwner owner)UnitonStop(LifecycleOwner owner)-
-
Constructor Detail
-
SessionManager
SessionManager(Application application, Long sessionTimeout)
-
-
Method Detail
-
getSessionId
final String getSessionId()
-
setSessionId
final Unit setSessionId(String sessionId)
-
startTracking
final Unit startTracking(Function1<SessionManager.SessionEvent, Unit> eventCallback)
-
onStart
Unit onStart(LifecycleOwner owner)
-
onStop
Unit onStop(LifecycleOwner owner)
-
-
-
-