Interface Session.Listener

All Known Implementing Classes:
Session.Listener.Default
Enclosing interface:
Session

public static interface Session.Listener
The optional listener interface for a session which may be used to receive state notifications. By default a session will not have a listener.
  • Method Details

    • onSessionStateChanged

      void onSessionStateChanged(Session session, Session.State oldState, Session.State newState)
      Called whenever the state of a session changes.
      Parameters:
      session - the session
      oldState - the old state
      newState - the new state