Package apple.gamekit

Class GKScore

    • Constructor Detail

      • GKScore

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static GKScore alloc()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

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

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

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

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

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

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

        public static long hash_static()
      • instanceMethodSignatureForSelector

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

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

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

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

        public static java.lang.Object new_objc()
      • reportScoresWithCompletionHandler

        public static void reportScoresWithCompletionHandler​(NSArray<? extends GKScore> scores,
                                                             GKScore.Block_reportScoresWithCompletionHandler completionHandler)
        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
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • category

        @Deprecated
        public java.lang.String category()
        Deprecated.
      • context

        public long context()
        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.
      • date

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

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

        @Deprecated
        public GKScore initWithCategory​(java.lang.String category)
        Deprecated.
      • initWithLeaderboardIdentifier

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

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

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

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

        public java.lang.String leaderboardIdentifier()
        leaderboard identifier (required)
      • player

        public GKPlayer player()
        The player that recorded the score.
      • playerID

        @Deprecated
        public java.lang.String playerID()
        Deprecated.
        The identifier of the player that recorded the score.
      • rank

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

        @Deprecated
        public void setCategory​(java.lang.String value)
        Deprecated.
      • setContext

        public void setContext​(long value)
        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.
      • setLeaderboardIdentifier

        public void setLeaderboardIdentifier​(java.lang.String value)
        leaderboard identifier (required)
      • setShouldSetDefaultLeaderboard

        public void setShouldSetDefaultLeaderboard​(boolean value)
        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
      • setValue

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

        public boolean shouldSetDefaultLeaderboard()
        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
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        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()
        The score value as a 64bit integer.