public class GKScore extends NSObject implements NSCoding, NSSecureCoding
| Modifier and Type | Class and Description |
|---|---|
static interface |
GKScore.Block_challengeComposeControllerWithMessagePlayersCompletionHandler |
static interface |
GKScore.Block_challengeComposeControllerWithPlayersMessageCompletionHandler |
static interface |
GKScore.Block_reportLeaderboardScoresWithEligibleChallengesWithCompletionHandler |
static interface |
GKScore.Block_reportScoresWithCompletionHandler |
static interface |
GKScore.Block_reportScoresWithEligibleChallengesWithCompletionHandler |
static interface |
GKScore.Block_reportScoreWithCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
GKScore(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static GKScore |
alloc() |
static GKScore |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
java.lang.String |
category()
Deprecated.
|
UIViewController |
challengeComposeControllerWithMessagePlayersCompletionHandler(java.lang.String message,
NSArray<? extends GKPlayer> players,
GKScore.Block_challengeComposeControllerWithMessagePlayersCompletionHandler completionHandler) |
UIViewController |
challengeComposeControllerWithPlayersMessageCompletionHandler(NSArray<java.lang.String> playerIDs,
java.lang.String message,
GKScore.Block_challengeComposeControllerWithPlayersMessageCompletionHandler completionHandler)
Deprecated.
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
long |
context()
optional additional context that allows a game to store and retrieve additional data associated with the store.
|
NSDate |
date()
The date this score was recorded.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
java.lang.String |
formattedValue()
The score formatted as a string, localized with a label
|
static long |
hash_static() |
GKScore |
init() |
GKScore |
initWithCategory(java.lang.String category)
Deprecated.
|
GKScore |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
GKScore |
initWithLeaderboardIdentifier(java.lang.String identifier)
Initialize the score with the local player and current date.
|
GKScore |
initWithLeaderboardIdentifierForPlayer(java.lang.String identifier,
java.lang.String playerID)
Deprecated.
|
GKScore |
initWithLeaderboardIdentifierPlayer(java.lang.String identifier,
GKPlayer player)
Initialize the achievement for a specific player.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
void |
issueChallengeToPlayersMessage(NSArray<java.lang.String> playerIDs,
java.lang.String message)
Deprecated.
|
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
java.lang.String |
leaderboardIdentifier()
leaderboard identifier (required)
|
static GKScore |
new_objc() |
GKPlayer |
player()
The player that recorded the score.
|
java.lang.String |
playerID()
Deprecated.
|
long |
rank()
The rank of the player within the leaderboard, only valid when returned from GKLeaderboard
|
static void |
reportLeaderboardScoresWithEligibleChallengesWithCompletionHandler(NSArray<? extends GKLeaderboardScore> scores,
NSArray<? extends GKChallenge> challenges,
GKScore.Block_reportLeaderboardScoresWithEligibleChallengesWithCompletionHandler completionHandler) |
static void |
reportScoresWithCompletionHandler(NSArray<? extends GKScore> scores,
GKScore.Block_reportScoresWithCompletionHandler completionHandler)
Report scores to the server.
|
static void |
reportScoresWithEligibleChallengesWithCompletionHandler(NSArray<? extends GKScore> scores,
NSArray<? extends GKChallenge> challenges,
GKScore.Block_reportScoresWithEligibleChallengesWithCompletionHandler completionHandler)
Use this alternative to reportScores:withCompletionHandler: to allow only certain specific challenges to be completed.
|
void |
reportScoreWithCompletionHandler(GKScore.Block_reportScoreWithCompletionHandler completionHandler)
Deprecated.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setCategory(java.lang.String value)
Deprecated.
|
void |
setContext(long value)
optional additional context that allows a game to store and retrieve additional data associated with the store.
|
void |
setLeaderboardIdentifier(java.lang.String value)
leaderboard identifier (required)
|
void |
setShouldSetDefaultLeaderboard(boolean value)
Convenience property to make the leaderboard associated with this GKScore, the default leaderboard for this player.
|
void |
setValue(long value)
The score value as a 64bit integer.
|
static void |
setVersion_static(long aVersion) |
boolean |
shouldSetDefaultLeaderboard()
Convenience property to make the leaderboard associated with this GKScore, the default leaderboard for this player.
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
long |
value()
The score value as a 64bit integer.
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static GKScore alloc()
public static GKScore allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static GKScore new_objc()
public static void reportScoresWithCompletionHandler(NSArray<? extends GKScore> scores, GKScore.Block_reportScoresWithCompletionHandler completionHandler)
public static void reportScoresWithEligibleChallengesWithCompletionHandler(NSArray<? extends GKScore> scores, NSArray<? extends GKChallenge> challenges, GKScore.Block_reportScoresWithEligibleChallengesWithCompletionHandler completionHandler)
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
@Deprecated public java.lang.String category()
public UIViewController challengeComposeControllerWithMessagePlayersCompletionHandler(java.lang.String message, NSArray<? extends GKPlayer> players, GKScore.Block_challengeComposeControllerWithMessagePlayersCompletionHandler completionHandler)
@Deprecated public UIViewController challengeComposeControllerWithPlayersMessageCompletionHandler(NSArray<java.lang.String> playerIDs, java.lang.String message, GKScore.Block_challengeComposeControllerWithPlayersMessageCompletionHandler completionHandler)
public long context()
public NSDate date()
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic java.lang.String formattedValue()
@Deprecated public GKScore initWithCategory(java.lang.String category)
public GKScore initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic GKScore initWithLeaderboardIdentifier(java.lang.String identifier)
@Deprecated public GKScore initWithLeaderboardIdentifierForPlayer(java.lang.String identifier, java.lang.String playerID)
public GKScore initWithLeaderboardIdentifierPlayer(java.lang.String identifier, GKPlayer player)
@Deprecated public void issueChallengeToPlayersMessage(NSArray<java.lang.String> playerIDs, java.lang.String message)
public java.lang.String leaderboardIdentifier()
public GKPlayer player()
@Deprecated public java.lang.String playerID()
public long rank()
@Deprecated public void reportScoreWithCompletionHandler(GKScore.Block_reportScoreWithCompletionHandler completionHandler)
@Deprecated public void setCategory(java.lang.String value)
public void setContext(long value)
public void setLeaderboardIdentifier(java.lang.String value)
public void setShouldSetDefaultLeaderboard(boolean value)
public void setValue(long value)
public boolean shouldSetDefaultLeaderboard()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic long value()
public static void reportLeaderboardScoresWithEligibleChallengesWithCompletionHandler(NSArray<? extends GKLeaderboardScore> scores, NSArray<? extends GKChallenge> challenges, GKScore.Block_reportLeaderboardScoresWithEligibleChallengesWithCompletionHandler completionHandler)