Interface LoginListener

  • All Superinterfaces:
    java.util.EventListener

    public interface LoginListener
    extends java.util.EventListener
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onLoadingStateChange​(int state)
      This fires when the login loading state changes
      void onLoginResponse​(int response)
      This will fire when the game receives a login response code
      void onLoginResponseChange​(java.lang.String message0, java.lang.String message1, java.lang.String message2)
      This will fire when the login response messages change
      void onLoginStageChange​(int stage)
      This fires when the game's login stage changes
    • Method Detail

      • onLoginStageChange

        void onLoginStageChange​(int stage)
        This fires when the game's login stage changes
        Parameters:
        stage - 0: Pre-login welcome screen 2: Login screen 3: Try again screen 4: Authenticator screen
      • onLoadingStateChange

        void onLoadingStateChange​(int state)
        This fires when the login loading state changes
        Parameters:
        state - 0-9 before reaching the LOADING game state if successful then 14-16 before reaching the LOGGED_IN game state
      • onLoginResponseChange

        void onLoginResponseChange​(java.lang.String message0,
                                   java.lang.String message1,
                                   java.lang.String message2)
        This will fire when the login response messages change
        Parameters:
        message0 - the first line of the response
        message1 - the second line of the response
        message2 - the third line of the response
      • onLoginResponse

        void onLoginResponse​(int response)
        This will fire when the game receives a login response code
        Parameters:
        response - -3: connection timed out 3: invalid credentials 4: banned