public class GKLeaderboard extends NSObject
| Modifier and Type | Class and Description |
|---|---|
static interface |
GKLeaderboard.Block_loadCategoriesWithCompletionHandler |
static interface |
GKLeaderboard.Block_loadEntriesForPlayerScopeTimeScopeRangeCompletionHandler |
static interface |
GKLeaderboard.Block_loadEntriesForPlayersTimeScopeCompletionHandler |
static interface |
GKLeaderboard.Block_loadImageWithCompletionHandler |
static interface |
GKLeaderboard.Block_loadLeaderboardsWithCompletionHandler |
static interface |
GKLeaderboard.Block_loadLeaderboardsWithIDsCompletionHandler |
static interface |
GKLeaderboard.Block_loadPreviousOccurrenceWithCompletionHandler |
static interface |
GKLeaderboard.Block_loadScoresWithCompletionHandler |
static interface |
GKLeaderboard.Block_setDefaultLeaderboardWithCompletionHandler |
static interface |
GKLeaderboard.Block_submitScoreContextPlayerCompletionHandler |
static interface |
GKLeaderboard.Block_submitScoreContextPlayerLeaderboardIDsCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
GKLeaderboard(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static GKLeaderboard |
alloc() |
static GKLeaderboard |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
java.lang.String |
baseLeaderboardID()
Leaderboard ID defined in App Store Connect that this instance is associated with
|
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.
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
double |
duration()
Duration from startDate during which this leaderboard instance accepts score submissions (only applicable to recurring leaderboards)
|
java.lang.String |
groupIdentifier()
set when leaderboards have been designated a game group; set when loadLeaderboardsWithCompletionHandler has been called for leaderboards that support game groups
|
static long |
hash_static() |
java.lang.String |
identifier()
leaderboardID.
|
GKLeaderboard |
init()
Default is the range 1-10 with Global/AllTime scopes.
|
GKLeaderboard |
initWithPlayerIDs(NSArray<java.lang.String> playerIDs)
Deprecated.
|
GKLeaderboard |
initWithPlayers(NSArray<? extends GKPlayer> players)
Specify an array of GKPlayers.
|
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) |
boolean |
isLoading()
This property is true if the leaderboard is currently loading
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static void |
loadCategoriesWithCompletionHandler(GKLeaderboard.Block_loadCategoriesWithCompletionHandler completionHandler)
Deprecated.
|
void |
loadEntriesForPlayerScopeTimeScopeRangeCompletionHandler(long playerScope,
long timeScope,
NSRange range,
GKLeaderboard.Block_loadEntriesForPlayerScopeTimeScopeRangeCompletionHandler completionHandler)
Loads leaderboard entries based on the supplied parameters.
|
void |
loadEntriesForPlayersTimeScopeCompletionHandler(NSArray<? extends GKPlayer> players,
long timeScope,
GKLeaderboard.Block_loadEntriesForPlayersTimeScopeCompletionHandler completionHandler)
Loads leaderboard entries for specific players based on the supplied parameters.
|
void |
loadImageWithCompletionHandler(GKLeaderboard.Block_loadImageWithCompletionHandler completionHandler) |
static void |
loadLeaderboardsWithCompletionHandler(GKLeaderboard.Block_loadLeaderboardsWithCompletionHandler completionHandler)
Loads the array of GKLeaderboard for your app
Possible reasons for error:
1.
|
static void |
loadLeaderboardsWithIDsCompletionHandler(NSArray<java.lang.String> leaderboardIDs,
GKLeaderboard.Block_loadLeaderboardsWithIDsCompletionHandler completionHandler)
Loads classic and recurring leaderboards associated with the supplied App Store Connect leaderboard IDs.
|
void |
loadPreviousOccurrenceWithCompletionHandler(GKLeaderboard.Block_loadPreviousOccurrenceWithCompletionHandler completionHandler)
Loads the occurrence preceding this occurrence for a recurring leaderboard in which the local player submitted a score.
|
void |
loadScoresWithCompletionHandler(GKLeaderboard.Block_loadScoresWithCompletionHandler completionHandler)
Load the scores for this leader board asynchronously.
|
GKScore |
localPlayerScore()
The local player's score
|
long |
maxRange()
The maxRange which represents the size of the leaderboard is not valid until loadScores: has completed.
|
static GKLeaderboard |
new_objc() |
NSDate |
nextStartDate()
Date and time the next instance will start accepting score submissions (only applicable to recurring leaderboards)
|
long |
playerScope()
Filter on friends.
|
NSRange |
range()
Leaderboards start at index 1 and the length should be less than 100.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
NSArray<? extends GKScore> |
scores()
Scores are not valid until loadScores: has completed.
|
void |
setCategory(java.lang.String value)
Deprecated.
|
static void |
setDefaultLeaderboardWithCompletionHandler(java.lang.String leaderboardIdentifier,
GKLeaderboard.Block_setDefaultLeaderboardWithCompletionHandler completionHandler)
Deprecated.
|
void |
setIdentifier(java.lang.String value)
leaderboardID.
|
void |
setPlayerScope(long value)
Filter on friends.
|
void |
setRange(NSRange value)
Leaderboards start at index 1 and the length should be less than 100.
|
void |
setTimeScope(long value) |
static void |
setVersion_static(long aVersion) |
NSDate |
startDate()
Date and time this instance started accepting score submissions (only applicable to recurring leaderboards)
|
void |
submitScoreContextPlayerCompletionHandler(long score,
long context,
GKPlayer player,
GKLeaderboard.Block_submitScoreContextPlayerCompletionHandler completionHandler)
Instance method to submit a single score to the leaderboard associated with this instance
score - earned by the player
context - developer supplied metadata associated with the player's score
player - the player for whom this score is being submitted
|
static void |
submitScoreContextPlayerLeaderboardIDsCompletionHandler(long score,
long context,
GKPlayer player,
NSArray<java.lang.String> leaderboardIDs,
GKLeaderboard.Block_submitScoreContextPlayerLeaderboardIDsCompletionHandler completionHandler)
Class method to submit a single score to multiple leaderboards
score - earned by the player
context - developer supplied metadata associated with the player's score
player - the player for whom this score is being submitted
leaderboardIDs - one or more leaderboard IDs defined in App Store Connect
|
static org.moe.natj.objc.Class |
superclass_static() |
long |
timeScope() |
java.lang.String |
title()
Localized title
|
long |
type()
Type of leaderboard
|
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 GKLeaderboard alloc()
public static GKLeaderboard 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)
@Deprecated public static void loadCategoriesWithCompletionHandler(GKLeaderboard.Block_loadCategoriesWithCompletionHandler completionHandler)
public static void loadLeaderboardsWithCompletionHandler(GKLeaderboard.Block_loadLeaderboardsWithCompletionHandler completionHandler)
public static GKLeaderboard new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
@Deprecated
public static void setDefaultLeaderboardWithCompletionHandler(java.lang.String leaderboardIdentifier,
GKLeaderboard.Block_setDefaultLeaderboardWithCompletionHandler completionHandler)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
@Deprecated public java.lang.String category()
public java.lang.String groupIdentifier()
public java.lang.String identifier()
public GKLeaderboard init()
@Deprecated public GKLeaderboard initWithPlayerIDs(NSArray<java.lang.String> playerIDs)
public GKLeaderboard initWithPlayers(NSArray<? extends GKPlayer> players)
public boolean isLoading()
public void loadImageWithCompletionHandler(GKLeaderboard.Block_loadImageWithCompletionHandler completionHandler)
public void loadScoresWithCompletionHandler(GKLeaderboard.Block_loadScoresWithCompletionHandler completionHandler)
public GKScore localPlayerScore()
public long maxRange()
public long playerScope()
public NSRange range()
public NSArray<? extends GKScore> scores()
@Deprecated public void setCategory(java.lang.String value)
public void setIdentifier(java.lang.String value)
public void setPlayerScope(long value)
public void setRange(NSRange value)
public void setTimeScope(long value)
public long timeScope()
public java.lang.String title()
public java.lang.String baseLeaderboardID()
public double duration()
public void loadEntriesForPlayerScopeTimeScopeRangeCompletionHandler(long playerScope,
long timeScope,
NSRange range,
GKLeaderboard.Block_loadEntriesForPlayerScopeTimeScopeRangeCompletionHandler completionHandler)
public void loadEntriesForPlayersTimeScopeCompletionHandler(NSArray<? extends GKPlayer> players, long timeScope, GKLeaderboard.Block_loadEntriesForPlayersTimeScopeCompletionHandler completionHandler)
public static void loadLeaderboardsWithIDsCompletionHandler(NSArray<java.lang.String> leaderboardIDs, GKLeaderboard.Block_loadLeaderboardsWithIDsCompletionHandler completionHandler)
public void loadPreviousOccurrenceWithCompletionHandler(GKLeaderboard.Block_loadPreviousOccurrenceWithCompletionHandler completionHandler)
public NSDate nextStartDate()
public NSDate startDate()
public void submitScoreContextPlayerCompletionHandler(long score,
long context,
GKPlayer player,
GKLeaderboard.Block_submitScoreContextPlayerCompletionHandler completionHandler)
public static void submitScoreContextPlayerLeaderboardIDsCompletionHandler(long score,
long context,
GKPlayer player,
NSArray<java.lang.String> leaderboardIDs,
GKLeaderboard.Block_submitScoreContextPlayerLeaderboardIDsCompletionHandler completionHandler)
public long type()