Package org.robovm.apple.gamekit
Class GKScore
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.gamekit.GKScore
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class GKScore extends NSObject implements NSCoding, NSSecureCoding
- Since:
- Available in iOS 4.1 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GKScore.GKScorePtr
-
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 GKScore()
GKScore(java.lang.String identifier)
GKScore(java.lang.String identifier, java.lang.String playerID)
Deprecated.Deprecated in iOS 8.0. use initWithLeaderboardIdentifier:player:GKScore(java.lang.String identifier, GKPlayer player)
GKScore(NSCoder decoder)
protected
GKScore(NSObject.Handle h, long handle)
protected
GKScore(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
encode(NSCoder coder)
java.lang.String
getCategory()
Deprecated.Deprecated in iOS 7.0.UIViewController
getChallengeComposeController(java.lang.String message, NSArray<GKPlayer> players, org.robovm.objc.block.VoidBlock3<UIViewController,java.lang.Boolean,NSArray<GKPlayer>> completionHandler)
UIViewController
getChallengeComposeController(java.util.List<java.lang.String> playerIDs, java.lang.String message, org.robovm.objc.block.VoidBlock3<UIViewController,java.lang.Boolean,NSArray<NSString>> completionHandler)
Deprecated.Deprecated in iOS 8.0. pass GKPlayers to challengeComposeControllerWithMessage:players:long
getContext()
NSDate
getDate()
java.lang.String
getFormattedValue()
java.lang.String
getLeaderboardIdentifier()
GKPlayer
getPlayer()
java.lang.String
getPlayerID()
Deprecated.Deprecated in iOS 8.0. use playerlong
getRank()
long
getValue()
protected long
init(java.lang.String identifier)
protected long
init(java.lang.String identifier, java.lang.String playerID)
Deprecated.Deprecated in iOS 8.0. use initWithLeaderboardIdentifier:player:protected long
init(java.lang.String identifier, GKPlayer player)
protected long
init(NSCoder decoder)
void
issueChallengeToPlayers(java.util.List<java.lang.String> playerIDs, java.lang.String message)
Deprecated.Deprecated in iOS 7.0. pass GKPlayers to challengeComposeControllerWithMessage:players:completionHandler: and present the view controller insteadvoid
reportScore(org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
Deprecated.Deprecated in iOS 7.0.static void
reportScores(NSArray<GKScore> scores, NSArray<GKChallenge> challenges, org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
static void
reportScores(NSArray<GKScore> scores, org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
void
setCategory(java.lang.String v)
Deprecated.Deprecated in iOS 7.0.void
setContext(long v)
void
setLeaderboardIdentifier(java.lang.String v)
void
setShouldSetDefaultLeaderboard(boolean v)
void
setValue(long v)
boolean
shouldSetDefaultLeaderboard()
static boolean
supportsSecureCoding()
-
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
-
GKScore
public GKScore()
-
GKScore
protected GKScore(NSObject.Handle h, long handle)
-
GKScore
protected GKScore(NSObject.SkipInit skipInit)
-
GKScore
public GKScore(java.lang.String identifier)
-
GKScore
public GKScore(java.lang.String identifier, GKPlayer player)
- Since:
- Available in iOS 8.0 and later.
-
GKScore
@Deprecated public GKScore(java.lang.String identifier, java.lang.String playerID)
Deprecated.Deprecated in iOS 8.0. use initWithLeaderboardIdentifier:player:- Since:
- Available in iOS 7.0 and later.
-
GKScore
public GKScore(NSCoder decoder)
-
-
Method Detail
-
getValue
public long getValue()
-
setValue
public void setValue(long v)
-
getFormattedValue
public java.lang.String getFormattedValue()
-
getLeaderboardIdentifier
public java.lang.String getLeaderboardIdentifier()
- Since:
- Available in iOS 7.0 and later.
-
setLeaderboardIdentifier
public void setLeaderboardIdentifier(java.lang.String v)
- Since:
- Available in iOS 7.0 and later.
-
getContext
public long getContext()
- Since:
- Available in iOS 5.0 and later.
-
setContext
public void setContext(long v)
- Since:
- Available in iOS 5.0 and later.
-
getDate
public NSDate getDate()
-
getPlayer
public GKPlayer getPlayer()
- Since:
- Available in iOS 8.0 and later.
-
getRank
public long getRank()
-
shouldSetDefaultLeaderboard
public boolean shouldSetDefaultLeaderboard()
- Since:
- Available in iOS 5.0 and later.
-
setShouldSetDefaultLeaderboard
public void setShouldSetDefaultLeaderboard(boolean v)
- Since:
- Available in iOS 5.0 and later.
-
getPlayerID
@Deprecated public java.lang.String getPlayerID()
Deprecated.Deprecated in iOS 8.0. use player- Since:
- Available in iOS 4.1 and later.
-
getCategory
@Deprecated public java.lang.String getCategory()
Deprecated.Deprecated in iOS 7.0. Use leaderboardIdentifier 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 leaderboardIdentifier instead- Since:
- Available in iOS 4.1 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
init
protected long init(java.lang.String identifier)
-
init
protected long init(java.lang.String identifier, GKPlayer player)
- Since:
- Available in iOS 8.0 and later.
-
reportScores
public static void reportScores(NSArray<GKScore> scores, org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
- Since:
- Available in iOS 6.0 and later.
-
init
@Deprecated protected long init(java.lang.String identifier, java.lang.String playerID)
Deprecated.Deprecated in iOS 8.0. use initWithLeaderboardIdentifier:player:- Since:
- Available in iOS 7.0 and later.
-
reportScore
@Deprecated public void reportScore(org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
Deprecated.Deprecated in iOS 7.0. Use +reportScores:withCompletionhandler: instead- Since:
- Available in iOS 4.1 and later.
-
getChallengeComposeController
public UIViewController getChallengeComposeController(java.lang.String message, NSArray<GKPlayer> players, org.robovm.objc.block.VoidBlock3<UIViewController,java.lang.Boolean,NSArray<GKPlayer>> completionHandler)
- Since:
- Available in iOS 8.0 and later.
-
issueChallengeToPlayers
@Deprecated public void issueChallengeToPlayers(java.util.List<java.lang.String> playerIDs, java.lang.String message)
Deprecated.Deprecated in iOS 7.0. pass GKPlayers to challengeComposeControllerWithMessage:players:completionHandler: and present the view controller instead- Since:
- Available in iOS 6.0 and later.
-
reportScores
public static void reportScores(NSArray<GKScore> scores, NSArray<GKChallenge> challenges, org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
- Since:
- Available in iOS 7.0 and later.
-
getChallengeComposeController
@Deprecated public UIViewController getChallengeComposeController(java.util.List<java.lang.String> playerIDs, java.lang.String message, org.robovm.objc.block.VoidBlock3<UIViewController,java.lang.Boolean,NSArray<NSString>> completionHandler)
Deprecated.Deprecated in iOS 8.0. pass GKPlayers to challengeComposeControllerWithMessage:players:- Since:
- Available in iOS 7.0 and later.
-
init
protected long init(NSCoder decoder)
-
-