Class GKScore

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

@Deprecated
public class GKScore
extends NSObject
implements NSCoding, NSSecureCoding
Deprecated.
Deprecated in iOS 14.0. Replaced by GKLeaderboardEntry
  • Constructor Details

    • GKScore

      public GKScore()
      Deprecated.
    • GKScore

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

      protected GKScore​(NSObject.SkipInit skipInit)
      Deprecated.
    • GKScore

      public GKScore​(String identifier)
      Deprecated.
    • GKScore

      public GKScore​(String identifier, GKPlayer player)
      Deprecated.
    • GKScore

      @Deprecated public GKScore​(String identifier, String playerID)
      Deprecated.
      Deprecated in iOS 8.0. This is never invoked and its implementation does nothing, use initWithLeaderboardIdentifier:player:
    • GKScore

      public GKScore​(NSCoder coder)
      Deprecated.
  • Method Details

    • getValue

      public long getValue()
      Deprecated.
    • setValue

      public void setValue​(long v)
      Deprecated.
    • getFormattedValue

      public String getFormattedValue()
      Deprecated.
    • getLeaderboardIdentifier

      public String getLeaderboardIdentifier()
      Deprecated.
    • setLeaderboardIdentifier

      public void setLeaderboardIdentifier​(String v)
      Deprecated.
    • getContext

      public long getContext()
      Deprecated.
    • setContext

      public void setContext​(long v)
      Deprecated.
    • getDate

      public NSDate getDate()
      Deprecated.
    • getPlayer

      public GKPlayer getPlayer()
      Deprecated.
    • getRank

      public long getRank()
      Deprecated.
    • shouldSetDefaultLeaderboard

      public boolean shouldSetDefaultLeaderboard()
      Deprecated.
    • setShouldSetDefaultLeaderboard

      public void setShouldSetDefaultLeaderboard​(boolean v)
      Deprecated.
    • getCategory

      @Deprecated public String getCategory()
      Deprecated.
      Deprecated in iOS 7.0. Use leaderboardIdentifier instead
    • setCategory

      @Deprecated public void setCategory​(String v)
      Deprecated.
      Deprecated in iOS 7.0. Use leaderboardIdentifier instead
    • getPlayerID

      @Deprecated public String getPlayerID()
      Deprecated.
      Deprecated in iOS 8.0. use player instead
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
      Deprecated.
    • init

      protected long init​(String identifier)
      Deprecated.
    • init

      protected long init​(String identifier, GKPlayer player)
      Deprecated.
    • reportScores

      public static void reportScores​(NSArray<GKScore> scores, VoidBlock1<NSError> completionHandler)
      Deprecated.
    • reportScore

      @Deprecated public void reportScore​(VoidBlock1<NSError> completionHandler)
      Deprecated.
      Deprecated in iOS 7.0. Use +reportScores:withCompletionhandler: instead
    • init

      @Deprecated protected long init​(String identifier, String playerID)
      Deprecated.
      Deprecated in iOS 8.0. This is never invoked and its implementation does nothing, use initWithLeaderboardIdentifier:player:
    • reportScores

      @Deprecated public static void reportScores​(NSArray<GKScore> scores, NSArray<GKChallenge> challenges, VoidBlock1<NSError> completionHandler)
      Deprecated.
      Deprecated in iOS 14.0. pass GKLeaderboardScore to reportLeaderboardScores:withEligibleChallenges:withCompletionHandler instead
    • reportLeaderboardScores

      public static void reportLeaderboardScores​(NSArray<GKLeaderboardScore> scores, NSArray<GKChallenge> challenges, VoidBlock1<NSError> completionHandler)
      Deprecated.
      Since:
      Available in iOS 14.0 and later.
    • issueChallengeToPlayers

      @Deprecated public void issueChallengeToPlayers​(List<String> playerIDs, String message)
      Deprecated.
      Deprecated in iOS 7.0. This is never invoked and its implementation does nothing, pass GKPlayers to challengeComposeControllerWithMessage:players:completionHandler: and present the view controller instead
    • getChallengeComposeController

      public UIViewController getChallengeComposeController​(String message, NSArray<GKPlayer> players, VoidBlock3<UIViewController,​Boolean,​NSArray<GKPlayer>> completionHandler)
      Deprecated.
    • getChallengeComposeController

      @Deprecated public UIViewController getChallengeComposeController​(List<String> playerIDs, String message, VoidBlock3<UIViewController,​Boolean,​NSArray<NSString>> completionHandler)
      Deprecated.
      Deprecated in iOS 8.0. This is never invoked and its implementation does nothing, pass GKPlayers to challengeComposeControllerWithMessage:players: instead
    • encode

      public void encode​(NSCoder coder)
      Deprecated.
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)
      Deprecated.