Package apple.gamekit

Class GKScore

    • Constructor Detail

      • GKScore

        protected GKScore​(org.moe.natj.general.Pointer peer)
        Deprecated.
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
        Deprecated.
      • alloc

        public static GKScore alloc()
        Deprecated.
      • allocWithZone

        public static GKScore allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Deprecated.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
        Deprecated.
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
        Deprecated.
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
        Deprecated.
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
        Deprecated.
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
        Deprecated.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
        Deprecated.
      • description_static

        public static java.lang.String description_static()
        Deprecated.
      • hash_static

        public static long hash_static()
        Deprecated.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
        Deprecated.
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
        Deprecated.
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
        Deprecated.
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
        Deprecated.
      • new_objc

        public static GKScore new_objc()
        Deprecated.
      • reportScoresWithCompletionHandler

        public static void reportScoresWithCompletionHandler​(@NotNull
                                                             @NotNull NSArray<? extends GKScore> scores,
                                                             @Nullable
                                                             @Nullable GKScore.Block_reportScoresWithCompletionHandler completionHandler)
        Deprecated.
        Report scores to the server. The value must be set, and date may be changed. Possible reasons for error: 1. Value not set 2. Local player not authenticated 3. Communications problem API-Since: 6.0
      • reportScoresWithEligibleChallengesWithCompletionHandler

        @Deprecated
        public static void reportScoresWithEligibleChallengesWithCompletionHandler​(@NotNull
                                                                                   @NotNull NSArray<? extends GKScore> scores,
                                                                                   @NotNull
                                                                                   @NotNull NSArray<? extends GKChallenge> challenges,
                                                                                   @Nullable
                                                                                   @Nullable GKScore.Block_reportScoresWithEligibleChallengesWithCompletionHandler completionHandler)
        Deprecated.
        Use this alternative to reportScores:withCompletionHandler: to allow only certain specific challenges to be completed. Pass nil to avoid completing any challenges. API-Since: 6.0 Deprecated-Since: 14.0
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
        Deprecated.
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
        Deprecated.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
        Deprecated.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
        Deprecated.
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
        Deprecated.
      • version_static

        public static long version_static()
        Deprecated.
      • category

        @Nullable
        @Deprecated
        public @Nullable java.lang.String category()
        Deprecated.
        API-Since: 4.1 Deprecated-Since: 7.0
      • challengeComposeControllerWithPlayersMessageCompletionHandler

        @Nullable
        @Deprecated
        public @Nullable UIViewController challengeComposeControllerWithPlayersMessageCompletionHandler​(@Nullable
                                                                                                        @Nullable NSArray<java.lang.String> playerIDs,
                                                                                                        @Nullable
                                                                                                        @Nullable java.lang.String message,
                                                                                                        @Nullable
                                                                                                        @Nullable GKScore.Block_challengeComposeControllerWithPlayersMessageCompletionHandler completionHandler)
        Deprecated.
        This method is obsolete. Calling this method does nothing and will return nil ** API-Since: 7.0 Deprecated-Since: 8.0
      • context

        public long context()
        Deprecated.
        optional additional context that allows a game to store and retrieve additional data associated with the store. Default value of zero is returned if no value is set. API-Since: 5.0
      • date

        @NotNull
        public @NotNull NSDate date()
        Deprecated.
        The date this score was recorded. A newly initialized, unsubmitted GKScore records the current date at init time.
      • encodeWithCoder

        public void encodeWithCoder​(@NotNull
                                    @NotNull NSCoder coder)
        Deprecated.
        Specified by:
        encodeWithCoder in interface NSCoding
      • formattedValue

        @Nullable
        public @Nullable java.lang.String formattedValue()
        Deprecated.
        The score formatted as a string, localized with a label
      • initWithCategory

        @Deprecated
        public GKScore initWithCategory​(@Nullable
                                        @Nullable java.lang.String category)
        Deprecated.
        API-Since: 4.1 Deprecated-Since: 7.0
      • initWithCoder

        public GKScore initWithCoder​(@NotNull
                                     @NotNull NSCoder coder)
        Deprecated.
        Description copied from interface: NSCoding
        NS_DESIGNATED_INITIALIZER
        Specified by:
        initWithCoder in interface NSCoding
      • initWithLeaderboardIdentifier

        public GKScore initWithLeaderboardIdentifier​(@NotNull
                                                     @NotNull java.lang.String identifier)
        Deprecated.
        Initialize the score with the local player and current date.
      • initWithLeaderboardIdentifierForPlayer

        @Deprecated
        public GKScore initWithLeaderboardIdentifierForPlayer​(@NotNull
                                                              @NotNull java.lang.String identifier,
                                                              @NotNull
                                                              @NotNull java.lang.String playerID)
        Deprecated.
        This method is obsolete. Calling this initialiser does nothing and will return nil ** API-Since: 7.0 Deprecated-Since: 8.0
      • initWithLeaderboardIdentifierPlayer

        public GKScore initWithLeaderboardIdentifierPlayer​(@NotNull
                                                           @NotNull java.lang.String identifier,
                                                           @NotNull
                                                           @NotNull GKPlayer player)
        Deprecated.
        Initialize the achievement for a specific player. Use to submit participant scores when ending a turn-based match. API-Since: 8.0
      • issueChallengeToPlayersMessage

        @Deprecated
        public void issueChallengeToPlayersMessage​(@Nullable
                                                   @Nullable NSArray<java.lang.String> playerIDs,
                                                   @Nullable
                                                   @Nullable java.lang.String message)
        Deprecated.
        This method is obsolete. It will never be invoked and its implementation does nothing** API-Since: 6.0 Deprecated-Since: 7.0
      • leaderboardIdentifier

        @NotNull
        public @NotNull java.lang.String leaderboardIdentifier()
        Deprecated.
        leaderboard identifier (required) API-Since: 7.0
      • player

        @Nullable
        public @Nullable GKPlayer player()
        Deprecated.
        The player that recorded the score. API-Since: 8.0
      • playerID

        @Nullable
        @Deprecated
        public @Nullable java.lang.String playerID()
        Deprecated.
        The identifier of the player that recorded the score. API-Since: 4.1 Deprecated-Since: 8.0
      • rank

        public long rank()
        Deprecated.
        The rank of the player within the leaderboard, only valid when returned from GKLeaderboard
      • reportScoreWithCompletionHandler

        @Deprecated
        public void reportScoreWithCompletionHandler​(@Nullable
                                                     @Nullable GKScore.Block_reportScoreWithCompletionHandler completionHandler)
        Deprecated.
        API-Since: 4.1 Deprecated-Since: 7.0
      • setCategory

        @Deprecated
        public void setCategory​(@Nullable
                                @Nullable java.lang.String value)
        Deprecated.
        API-Since: 4.1 Deprecated-Since: 7.0
      • setContext

        public void setContext​(long value)
        Deprecated.
        optional additional context that allows a game to store and retrieve additional data associated with the store. Default value of zero is returned if no value is set. API-Since: 5.0
      • setLeaderboardIdentifier

        public void setLeaderboardIdentifier​(@NotNull
                                             @NotNull java.lang.String value)
        Deprecated.
        leaderboard identifier (required) API-Since: 7.0
      • setShouldSetDefaultLeaderboard

        public void setShouldSetDefaultLeaderboard​(boolean value)
        Deprecated.
        Convenience property to make the leaderboard associated with this GKScore, the default leaderboard for this player. Default value is false. If true, reporting that score will make the category this score belongs to, the default leaderboard for this user API-Since: 5.0
      • setValue

        public void setValue​(long value)
        Deprecated.
        The score value as a 64bit integer.
      • shouldSetDefaultLeaderboard

        public boolean shouldSetDefaultLeaderboard()
        Deprecated.
        Convenience property to make the leaderboard associated with this GKScore, the default leaderboard for this player. Default value is false. If true, reporting that score will make the category this score belongs to, the default leaderboard for this user API-Since: 5.0
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Deprecated.
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • value

        public long value()
        Deprecated.
        The score value as a 64bit integer.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.