Package org.robovm.apple.gamekit
Class GKLocalPlayer
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.gamekit.GKPlayer
org.robovm.apple.gamekit.GKLocalPlayer
- All Implemented Interfaces:
NSObjectProtocol,GKSavedGameListener,ObjCProtocol
public class GKLocalPlayer extends GKPlayer implements GKSavedGameListener
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGKLocalPlayer.GKLocalPlayerPtrNested classes/interfaces inherited from class org.robovm.apple.gamekit.GKPlayer
GKPlayer.GKPlayerPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description GKLocalPlayer()protectedGKLocalPlayer(NSObject.Handle h, long handle)protectedGKLocalPlayer(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.gamekit.GKPlayer
DidChangeNotification, getAlias, getDisplayName, getGamePlayerID, getGuestIdentifier, getPlayerID, getTeamPlayerID, IDNoLongerAvailable, isFriend, isInvitable, loadPhoto, loadPlayers, scopedIDsArePersistentMethods 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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
GKLocalPlayer
public GKLocalPlayer() -
GKLocalPlayer
-
GKLocalPlayer
-
-
Method Details
-
getLocal
- Since:
- Available in iOS 13.0 and later.
-
getLocalPlayer
-
isAuthenticated
public boolean isAuthenticated() -
isUnderage
public boolean isUnderage() -
isMultiplayerGamingRestricted
public boolean isMultiplayerGamingRestricted()- Since:
- Available in iOS 13.0 and later.
-
isPersonalizedCommunicationRestricted
public boolean isPersonalizedCommunicationRestricted()- Since:
- Available in iOS 14.0 and later.
-
getFriends
Deprecated.Deprecated in iOS 8.0. This property is obsolete, Use loadFriendPlayersWithCompletionHandler: instead -
getAuthenticateHandler
-
setAuthenticateHandler
-
isPresentingFriendRequestViewController
public boolean isPresentingFriendRequestViewController()- Since:
- Available in iOS 15.0 and later.
-
AuthenticationDidChangeNotification
-
loadRecentPlayers
- Since:
- Available in iOS 10.0 and later.
-
loadChallengableFriends
-
setDefaultLeaderboardIdentifier
public void setDefaultLeaderboardIdentifier(String leaderboardIdentifier, VoidBlock1<NSError> completionHandler) -
loadDefaultLeaderboardIdentifier
-
fetchItemsForIdentityVerificationSignature
public void fetchItemsForIdentityVerificationSignature(VoidBlock5<NSURL,NSData,NSData,Long,NSError> completionHandler)- Since:
- Available in iOS 13.5 and later.
-
getAnonymousGuestPlayer
- Since:
- Available in iOS 9.0 and later.
-
registerListener
-
unregisterListener
-
unregisterAllListeners
public void unregisterAllListeners() -
setDefaultLeaderboardCategoryID
@Deprecated public void setDefaultLeaderboardCategoryID(String categoryID, VoidBlock1<NSError> completionHandler)Deprecated.Deprecated in iOS 7.0. Use setDefaultLeaderboardIdentifier:completionHandler: instead -
loadDefaultLeaderboardCategoryID
@Deprecated public void loadDefaultLeaderboardCategoryID(VoidBlock2<NSString,NSError> completionHandler)Deprecated.Deprecated in iOS 7.0. Use loadDefaultLeaderboardIdentifierWithCompletionHandler: instead -
loadFriendPlayers
@Deprecated public void loadFriendPlayers(VoidBlock2<NSArray<GKPlayer>,NSError> completionHandler)Deprecated.Deprecated in iOS 10.0. -
generateIdentityVerificationSignature
@Deprecated public void generateIdentityVerificationSignature(VoidBlock5<NSURL,NSData,NSData,Long,NSError> completionHandler)Deprecated.Deprecated in iOS 13.5. API deprecated. Use fetchItemsForIdentityVerificationSignature: and the teamPlayerID value to verify a user identity. -
loadFriends
Deprecated.Deprecated in iOS 8.0. This is never invoked and its implementation does nothing, use loadRecentPlayersWithCompletionHandler: instead -
loadFriendsAuthorizationStatus
public void loadFriendsAuthorizationStatus(VoidBlock2<GKFriendsAuthorizationStatus,NSError> completionHandler)- Since:
- Available in iOS 14.5 and later.
-
loadFriends2
- Since:
- Available in iOS 14.5 and later.
-
loadFriends
public void loadFriends(NSArray<NSString> identifiers, VoidBlock2<NSArray<GKPlayer>,NSError> completionHandler)- Since:
- Available in iOS 14.5 and later.
-
presentFriendRequestCreator
public boolean presentFriendRequestCreator(UIViewController viewController) throws NSErrorException- Throws:
NSErrorException- Since:
- Available in iOS 15.0 and later.
-
fetchSavedGames
-
saveGameData
-
deleteSavedGames
-
resolveConflictingSavedGames
public void resolveConflictingSavedGames(NSArray<GKSavedGame> conflictingSavedGames, NSData data, VoidBlock2<NSArray<GKSavedGame>,NSError> handler) -
didModifySavedGame
- Specified by:
didModifySavedGamein interfaceGKSavedGameListener
-
hasConflictingSavedGames
- Specified by:
hasConflictingSavedGamesin interfaceGKSavedGameListener
-