Class LeaderboardEntry

    • Constructor Summary

      Constructors 
      Constructor Description
      LeaderboardEntry​(int position, java.lang.String name, long score, java.lang.String scoreSuffix)
      Constructor for a leaderboard entry
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Retrieve the name of the leaderboard entry
      int getPosition()
      Retrieve the position of the leaderboard entry
      long getScore()
      Retrieve the score of the leaderboard entry
      java.lang.String getScoreSuffix()
      Retrieve the suffix to use for this leaderboard entry
      android.view.View getView​(android.content.Context context, android.view.View convertView, android.view.ViewGroup parent, LeaderboardEntry item)
      Retrieves the view to render in the leaderboard
      • Methods inherited from class java.lang.Object

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

      • LeaderboardEntry

        public LeaderboardEntry​(int position,
                                java.lang.String name,
                                long score,
                                java.lang.String scoreSuffix)
        Constructor for a leaderboard entry
        Parameters:
        position - position of the leaderboard entry
        name - name of the leaderboard entry
        score - score of the leaderboard entry
        scoreSuffix - suffix to use for the leaderboard entry
    • Method Detail

      • getName

        public java.lang.String getName()
        Retrieve the name of the leaderboard entry
        Returns:
        name
      • getScore

        public long getScore()
        Retrieve the score of the leaderboard entry
        Returns:
        score
      • getScoreSuffix

        public java.lang.String getScoreSuffix()
        Retrieve the suffix to use for this leaderboard entry
        Returns:
        score suffix
      • getPosition

        public int getPosition()
        Retrieve the position of the leaderboard entry
        Returns:
        position
      • getView

        public android.view.View getView​(android.content.Context context,
                                         android.view.View convertView,
                                         android.view.ViewGroup parent,
                                         LeaderboardEntry item)
        Description copied from interface: LeaderboardAdapterItem
        Retrieves the view to render in the leaderboard
        Specified by:
        getView in interface LeaderboardAdapterItem<LeaderboardEntry>
        Parameters:
        context - application context
        convertView - view
        parent - parent
        item - leaderboard item
        Returns:
        view to display