Class GKLeaderboard

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    public class GKLeaderboard
    extends NSObject
    Since:
    Available in iOS 4.1 and later.
    • Constructor Detail

      • GKLeaderboard

        public GKLeaderboard()
      • GKLeaderboard

        protected GKLeaderboard​(NSObject.Handle h,
                                long handle)
      • GKLeaderboard

        public GKLeaderboard​(NSArray<GKPlayer> players)
        Since:
        Available in iOS 8.0 and later.
      • GKLeaderboard

        @Deprecated
        public GKLeaderboard​(java.util.List<java.lang.String> playerIDs)
        Deprecated.
        Deprecated in iOS 8.0. Use initWithPlayers: instead
        Since:
        Available in iOS 4.1 and later.
    • Method Detail

      • getIdentifier

        public java.lang.String getIdentifier()
        Since:
        Available in iOS 7.0 and later.
      • setIdentifier

        public void setIdentifier​(java.lang.String v)
        Since:
        Available in iOS 7.0 and later.
      • getTitle

        public java.lang.String getTitle()
      • getRange

        public NSRange getRange()
      • setRange

        public void setRange​(NSRange v)
      • getMaxRange

        public long getMaxRange()
      • getLocalPlayerScore

        public GKScore getLocalPlayerScore()
      • isLoading

        public boolean isLoading()
      • getGroupIdentifier

        public java.lang.String getGroupIdentifier()
        Since:
        Available in iOS 6.0 and later.
      • getCategory

        @Deprecated
        public java.lang.String getCategory()
        Deprecated.
        Deprecated in iOS 7.0. Use identifier instead
        Since:
        Available in iOS 4.1 and later.
      • setCategory

        @Deprecated
        public void setCategory​(java.lang.String v)
        Deprecated.
        Deprecated in iOS 7.0. Use identifier instead
        Since:
        Available in iOS 4.1 and later.
      • init

        protected long init​(NSArray<GKPlayer> players)
        Since:
        Available in iOS 8.0 and later.
      • loadScores

        public void loadScores​(org.robovm.objc.block.VoidBlock2<NSArray<GKScore>,​NSError> completionHandler)
      • loadLeaderboards

        public static void loadLeaderboards​(org.robovm.objc.block.VoidBlock2<NSArray<GKLeaderboard>,​NSError> completionHandler)
        Since:
        Available in iOS 6.0 and later.
      • init

        @Deprecated
        protected long init​(java.util.List<java.lang.String> playerIDs)
        Deprecated.
        Deprecated in iOS 8.0. Use initWithPlayers: instead
        Since:
        Available in iOS 4.1 and later.
      • setDefaultLeaderboard

        @Deprecated
        public static void setDefaultLeaderboard​(java.lang.String leaderboardIdentifier,
                                                 org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
        Deprecated.
        Deprecated in iOS 7.0. Use setDefaultLeaderboardIdentifier:completionHandler: on GKLocalPlayer instead
        Since:
        Available in iOS 5.0 and later.
      • loadImage

        public void loadImage​(org.robovm.objc.block.VoidBlock2<UIImage,​NSError> completionHandler)
        Since:
        Available in iOS 7.0 and later.