-
public interface ISessionLifecycleHandlerImplement this interface and subscribe via ISessionService.subscribe to react to session lifecycle events.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonSessionStarted()Called when a session has been started. abstract UnitonSessionActive()Called when a session is again active. abstract UnitonSessionEnded(Long duration)Called when a session has ended. -
-
Method Detail
-
onSessionStarted
abstract Unit onSessionStarted()
Called when a session has been started.
-
onSessionActive
abstract Unit onSessionActive()
Called when a session is again active.
-
onSessionEnded
abstract Unit onSessionEnded(Long duration)
Called when a session has ended.
- Parameters:
duration- The active duration of the session, in milliseconds.
-
-
-
-