Package 

Interface ISessionLifecycleHandler


  • 
    public interface ISessionLifecycleHandler
    
                        

    Implement this interface and subscribe via ISessionService.subscribe to react to session lifecycle events.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onSessionStarted() Called when a session has been started.
      abstract Unit onSessionActive() Called when a session is again active.
      abstract Unit onSessionEnded(Long duration) Called when a session has ended.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onSessionEnded

         abstract Unit onSessionEnded(Long duration)

        Called when a session has ended.

        Parameters:
        duration - The active duration of the session, in milliseconds.