Interface OnGlobalRankLoadedListener


  • public interface OnGlobalRankLoadedListener
    An interface for listening to the result of the global rank function.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onGlobalRankLoaded​(int rank, int maxScore, int userScore)
      Invoked when the function successfully retrieves the global rank for a given user.
      void onGlobalRankLoadFailure​(java.lang.Exception e)
      Invoked when the function fails to retrieve the global rank for a given user.
    • Method Detail

      • onGlobalRankLoaded

        void onGlobalRankLoaded​(int rank,
                                int maxScore,
                                int userScore)
        Invoked when the function successfully retrieves the global rank for a given user.
        Parameters:
        rank - The rank of the user.
        maxScore - The Max Score.
        userScore - The Score of the user
      • onGlobalRankLoadFailure

        void onGlobalRankLoadFailure​(java.lang.Exception e)
        Invoked when the function fails to retrieve the global rank for a given user.
        Parameters:
        e - The exception that caused the failure.