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 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()
      • reportAchievementsWithCompletionHandler

        public static void reportAchievementsWithCompletionHandler​(NSArray<? extends GKAchievement> achievements,
                                                                   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
      • resetAchievementsWithCompletionHandler

        public static void resetAchievementsWithCompletionHandler​(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()
      • identifier

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

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

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

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

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

        @Deprecated
        public boolean isHidden()
        Deprecated.
      • 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**
      • lastReportedDate

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

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

        public GKPlayer player()
        The identifier of the player that earned the achievement.
      • playerID

        @Deprecated
        public java.lang.String playerID()
        Deprecated.
        This property is obsolete. **
      • setIdentifier

        public void setIdentifier​(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
      • showsCompletionBanner

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