Package org.robovm.apple.gamekit
Class GKLeaderboard
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.gamekit.GKLeaderboard
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class GKLeaderboard extends NSObject
- Since:
- Available in iOS 4.1 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GKLeaderboard.GKLeaderboardPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description GKLeaderboard()
GKLeaderboard(java.util.List<java.lang.String> playerIDs)
Deprecated.Deprecated in iOS 8.0.GKLeaderboard(NSArray<GKPlayer> players)
protected
GKLeaderboard(NSObject.Handle h, long handle)
protected
GKLeaderboard(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getCategory()
Deprecated.Deprecated in iOS 7.0.java.lang.String
getGroupIdentifier()
java.lang.String
getIdentifier()
GKScore
getLocalPlayerScore()
long
getMaxRange()
GKLeaderboardPlayerScope
getPlayerScope()
NSRange
getRange()
NSArray<GKScore>
getScores()
GKLeaderboardTimeScope
getTimeScope()
java.lang.String
getTitle()
protected long
init(java.util.List<java.lang.String> playerIDs)
Deprecated.Deprecated in iOS 8.0.protected long
init(NSArray<GKPlayer> players)
boolean
isLoading()
void
loadImage(org.robovm.objc.block.VoidBlock2<UIImage,NSError> completionHandler)
static void
loadLeaderboards(org.robovm.objc.block.VoidBlock2<NSArray<GKLeaderboard>,NSError> completionHandler)
void
loadScores(org.robovm.objc.block.VoidBlock2<NSArray<GKScore>,NSError> completionHandler)
void
setCategory(java.lang.String v)
Deprecated.Deprecated in iOS 7.0.static void
setDefaultLeaderboard(java.lang.String leaderboardIdentifier, org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
Deprecated.Deprecated in iOS 7.0.void
setIdentifier(java.lang.String v)
void
setPlayerScope(GKLeaderboardPlayerScope v)
void
setRange(NSRange v)
void
setTimeScope(GKLeaderboardTimeScope v)
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
GKLeaderboard
public GKLeaderboard()
-
GKLeaderboard
protected GKLeaderboard(NSObject.Handle h, long handle)
-
GKLeaderboard
protected GKLeaderboard(NSObject.SkipInit skipInit)
-
GKLeaderboard
public GKLeaderboard(NSArray<GKPlayer> players)
- Since:
- Available in iOS 8.0 and later.
-
GKLeaderboard
@Deprecated public GKLeaderboard(java.util.List<java.lang.String> playerIDs)
Deprecated.Deprecated in iOS 8.0. Use initWithPlayers: instead- Since:
- Available in iOS 4.1 and later.
-
-
Method Detail
-
getTimeScope
public GKLeaderboardTimeScope getTimeScope()
-
setTimeScope
public void setTimeScope(GKLeaderboardTimeScope v)
-
getPlayerScope
public GKLeaderboardPlayerScope getPlayerScope()
-
setPlayerScope
public void setPlayerScope(GKLeaderboardPlayerScope v)
-
getIdentifier
public java.lang.String getIdentifier()
- Since:
- Available in iOS 7.0 and later.
-
setIdentifier
public void setIdentifier(java.lang.String v)
- Since:
- Available in iOS 7.0 and later.
-
getTitle
public java.lang.String getTitle()
-
getRange
public NSRange getRange()
-
setRange
public void setRange(NSRange v)
-
getMaxRange
public long getMaxRange()
-
getLocalPlayerScore
public GKScore getLocalPlayerScore()
-
isLoading
public boolean isLoading()
-
getGroupIdentifier
public java.lang.String getGroupIdentifier()
- Since:
- Available in iOS 6.0 and later.
-
getCategory
@Deprecated public java.lang.String getCategory()
Deprecated.Deprecated in iOS 7.0. Use identifier instead- Since:
- Available in iOS 4.1 and later.
-
setCategory
@Deprecated public void setCategory(java.lang.String v)
Deprecated.Deprecated in iOS 7.0. Use identifier instead- Since:
- Available in iOS 4.1 and later.
-
loadScores
public void loadScores(org.robovm.objc.block.VoidBlock2<NSArray<GKScore>,NSError> completionHandler)
-
loadLeaderboards
public static void loadLeaderboards(org.robovm.objc.block.VoidBlock2<NSArray<GKLeaderboard>,NSError> completionHandler)
- Since:
- Available in iOS 6.0 and later.
-
init
@Deprecated protected long init(java.util.List<java.lang.String> playerIDs)
Deprecated.Deprecated in iOS 8.0. Use initWithPlayers: instead- Since:
- Available in iOS 4.1 and later.
-
setDefaultLeaderboard
@Deprecated public static void setDefaultLeaderboard(java.lang.String leaderboardIdentifier, org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
Deprecated.Deprecated in iOS 7.0. Use setDefaultLeaderboardIdentifier:completionHandler: on GKLocalPlayer instead- Since:
- Available in iOS 5.0 and later.
-
-