Package apple.gamekit

Class GKAchievement

    • Constructor Detail

      • GKAchievement

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • 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)
      • classFallbacksForKeyedArchiver

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

        @NotNull
        public static @NotNull 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

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

        public static void reportAchievementsWithCompletionHandler​(@NotNull
                                                                   @NotNull NSArray<? extends GKAchievement> achievements,
                                                                   @Nullable
                                                                   @Nullable GKAchievement.Block_reportAchievementsWithCompletionHandler completionHandler)
        Report an array of achievements to the server. Percent complete is required. Points, completed state are set based on percentComplete. isHidden is set to NO anytime this method is invoked. Date is optional. Error will be nil on success. Possible reasons for error: 1. Local player not authenticated 2. Communications failure 3. Reported Achievement does not exist API-Since: 6.0
      • resetAchievementsWithCompletionHandler

        public static void resetAchievementsWithCompletionHandler​(@Nullable
                                                                  @Nullable GKAchievement.Block_resetAchievementsWithCompletionHandler completionHandler)
        Reset the achievements progress for the local player. All the entries for the local player are removed from the server. Error will be nil on success. Possible reasons for error: 1. Local player not authenticated 2. Communications failure
      • 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()
      • challengeComposeControllerWithPlayersMessageCompletionHandler

        @Nullable
        @Deprecated
        public @Nullable UIViewController challengeComposeControllerWithPlayersMessageCompletionHandler​(@Nullable
                                                                                                        @Nullable NSArray<java.lang.String> playerIDs,
                                                                                                        @Nullable
                                                                                                        @Nullable java.lang.String message,
                                                                                                        @Nullable
                                                                                                        @Nullable GKAchievement.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
      • identifier

        @Nullable
        public @Nullable java.lang.String identifier()
        Achievement identifier
      • initWithIdentifier

        public GKAchievement initWithIdentifier​(@Nullable
                                                @Nullable java.lang.String identifier)
        Designated initializer
      • initWithIdentifierForPlayer

        @Deprecated
        public GKAchievement initWithIdentifierForPlayer​(@Nullable
                                                         @Nullable 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
      • initWithIdentifierPlayer

        public GKAchievement initWithIdentifierPlayer​(@Nullable
                                                      @Nullable java.lang.String identifier,
                                                      @NotNull
                                                      @NotNull GKPlayer player)
        Initialize the achievement for a specific player. Use to submit participant achievements when ending a turn-based match. API-Since: 8.0
      • isCompleted

        public boolean isCompleted()
        Set to NO until percentComplete = 100.
      • isHidden

        @Deprecated
        public boolean isHidden()
        Deprecated.
        API-Since: 4.1 Deprecated-Since: 6.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
      • lastReportedDate

        @NotNull
        public @NotNull NSDate lastReportedDate()
        Date the achievement was last reported. Read-only. Created at initialization
      • percentComplete

        public double percentComplete()
        Required, Percentage of achievement complete.
      • player

        @Nullable
        public @Nullable GKPlayer player()
        The identifier of the player that earned the achievement. API-Since: 8.0
      • playerID

        @Nullable
        @Deprecated
        public @Nullable java.lang.String playerID()
        Deprecated.
        This property is obsolete. ** API-Since: 7.0 Deprecated-Since: 8.0
      • selectChallengeablePlayerIDsWithCompletionHandler

        @Deprecated
        public void selectChallengeablePlayerIDsWithCompletionHandler​(@Nullable
                                                                      @Nullable NSArray<java.lang.String> playerIDs,
                                                                      @Nullable
                                                                      @Nullable GKAchievement.Block_selectChallengeablePlayerIDsWithCompletionHandler completionHandler)
        Deprecated.
        This method is obsolete. It will never be invoked and its implementation does nothing** API-Since: 6.0 Deprecated-Since: 8.0
      • selectChallengeablePlayersWithCompletionHandler

        public void selectChallengeablePlayersWithCompletionHandler​(@NotNull
                                                                    @NotNull NSArray<? extends GKPlayer> players,
                                                                    @Nullable
                                                                    @Nullable GKAchievement.Block_selectChallengeablePlayersWithCompletionHandler completionHandler)
        Given a list of players, return a subset of that list containing only players that are eligible to receive a challenge for the achievement. API-Since: 8.0
      • setIdentifier

        public void setIdentifier​(@Nullable
                                  @Nullable java.lang.String value)
        Achievement identifier
      • setPercentComplete

        public void setPercentComplete​(double value)
        Required, Percentage of achievement complete.
      • setShowsCompletionBanner

        public void setShowsCompletionBanner​(boolean value)
        A banner will be momentarily displayed after reporting a completed achievement API-Since: 5.0
      • showsCompletionBanner

        public boolean showsCompletionBanner()
        A banner will be momentarily displayed after reporting a completed achievement API-Since: 5.0
      • _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
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.