Class GKScore

    • Constructor Detail

      • GKScore

        public GKScore()
      • GKScore

        public GKScore​(java.lang.String identifier)
      • GKScore

        public GKScore​(java.lang.String identifier,
                       GKPlayer player)
        Since:
        Available in iOS 8.0 and later.
      • GKScore

        @Deprecated
        public GKScore​(java.lang.String identifier,
                       java.lang.String playerID)
        Deprecated.
        Deprecated in iOS 8.0. use initWithLeaderboardIdentifier:player:
        Since:
        Available in iOS 7.0 and later.
      • GKScore

        public GKScore​(NSCoder decoder)
    • Method Detail

      • getValue

        public long getValue()
      • setValue

        public void setValue​(long v)
      • getFormattedValue

        public java.lang.String getFormattedValue()
      • getLeaderboardIdentifier

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

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

        public long getContext()
        Since:
        Available in iOS 5.0 and later.
      • setContext

        public void setContext​(long v)
        Since:
        Available in iOS 5.0 and later.
      • getDate

        public NSDate getDate()
      • getPlayer

        public GKPlayer getPlayer()
        Since:
        Available in iOS 8.0 and later.
      • getRank

        public long getRank()
      • shouldSetDefaultLeaderboard

        public boolean shouldSetDefaultLeaderboard()
        Since:
        Available in iOS 5.0 and later.
      • setShouldSetDefaultLeaderboard

        public void setShouldSetDefaultLeaderboard​(boolean v)
        Since:
        Available in iOS 5.0 and later.
      • getPlayerID

        @Deprecated
        public java.lang.String getPlayerID()
        Deprecated.
        Deprecated in iOS 8.0. use player
        Since:
        Available in iOS 4.1 and later.
      • getCategory

        @Deprecated
        public java.lang.String getCategory()
        Deprecated.
        Deprecated in iOS 7.0. Use leaderboardIdentifier 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 leaderboardIdentifier instead
        Since:
        Available in iOS 4.1 and later.
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • init

        protected long init​(java.lang.String identifier)
      • init

        protected long init​(java.lang.String identifier,
                            GKPlayer player)
        Since:
        Available in iOS 8.0 and later.
      • reportScores

        public static void reportScores​(NSArray<GKScore> scores,
                                        org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
        Since:
        Available in iOS 6.0 and later.
      • init

        @Deprecated
        protected long init​(java.lang.String identifier,
                            java.lang.String playerID)
        Deprecated.
        Deprecated in iOS 8.0. use initWithLeaderboardIdentifier:player:
        Since:
        Available in iOS 7.0 and later.
      • reportScore

        @Deprecated
        public void reportScore​(org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
        Deprecated.
        Deprecated in iOS 7.0. Use +reportScores:withCompletionhandler: instead
        Since:
        Available in iOS 4.1 and later.
      • issueChallengeToPlayers

        @Deprecated
        public void issueChallengeToPlayers​(java.util.List<java.lang.String> playerIDs,
                                            java.lang.String message)
        Deprecated.
        Deprecated in iOS 7.0. pass GKPlayers to challengeComposeControllerWithMessage:players:completionHandler: and present the view controller instead
        Since:
        Available in iOS 6.0 and later.
      • reportScores

        public static void reportScores​(NSArray<GKScore> scores,
                                        NSArray<GKChallenge> challenges,
                                        org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
        Since:
        Available in iOS 7.0 and later.
      • getChallengeComposeController

        @Deprecated
        public UIViewController getChallengeComposeController​(java.util.List<java.lang.String> playerIDs,
                                                              java.lang.String message,
                                                              org.robovm.objc.block.VoidBlock3<UIViewController,​java.lang.Boolean,​NSArray<NSString>> completionHandler)
        Deprecated.
        Deprecated in iOS 8.0. pass GKPlayers to challengeComposeControllerWithMessage:players:
        Since:
        Available in iOS 7.0 and later.
      • init

        protected long init​(NSCoder decoder)