Package apple.gamekit
Class GKMatchmaker
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.gamekit.GKMatchmaker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGKMatchmaker.Block_addPlayersToMatchMatchRequestCompletionHandlerstatic interfaceGKMatchmaker.Block_findMatchForRequestWithCompletionHandlerstatic interfaceGKMatchmaker.Block_findPlayersForHostedMatchRequestWithCompletionHandlerstatic interfaceGKMatchmaker.Block_findPlayersForHostedRequestWithCompletionHandlerstatic interfaceGKMatchmaker.Block_inviteHandler_retstatic interfaceGKMatchmaker.Block_matchForInviteCompletionHandlerstatic interfaceGKMatchmaker.Block_queryActivityWithCompletionHandlerstatic interfaceGKMatchmaker.Block_queryPlayerGroupActivityWithCompletionHandlerstatic interfaceGKMatchmaker.Block_setInviteHandlerstatic interfaceGKMatchmaker.Block_startBrowsingForNearbyPlayersWithHandlerstatic interfaceGKMatchmaker.Block_startBrowsingForNearbyPlayersWithReachableHandler-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGKMatchmaker(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()voidaddPlayersToMatchMatchRequestCompletionHandler(GKMatch match, GKMatchRequest matchRequest, GKMatchmaker.Block_addPlayersToMatchMatchRequestCompletionHandler completionHandler)Auto-matching or invites to add additional players to a peer-to-peer match for the specified request.static GKMatchmakeralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)voidcancel()Cancel matchmaking and any pending invitesvoidcancelInviteToPlayer(java.lang.String playerID)Deprecated.voidcancelPendingInviteToPlayer(GKPlayer player)Cancel a pending invitation to a playerstatic voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voidfindMatchForRequestWithCompletionHandler(GKMatchRequest request, GKMatchmaker.Block_findMatchForRequestWithCompletionHandler completionHandler)Auto-matching or invites to find a peer-to-peer match for the specified request.voidfindPlayersForHostedMatchRequestWithCompletionHandler(GKMatchRequest request, GKMatchmaker.Block_findPlayersForHostedMatchRequestWithCompletionHandler completionHandler)Deprecated.voidfindPlayersForHostedRequestWithCompletionHandler(GKMatchRequest request, GKMatchmaker.Block_findPlayersForHostedRequestWithCompletionHandler completionHandler)Auto-matching or invites for host-client match request.voidfinishMatchmakingForMatch(GKMatch match)Call this when finished with all programmatic P2P invites/matchmaking, for compatability with connected players using GKMatchmakerViewController.static longhash_static()GKMatchmakerinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)GKMatchmaker.Block_inviteHandler_retinviteHandler()Deprecated.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)voidmatchForInviteCompletionHandler(GKInvite invite, GKMatchmaker.Block_matchForInviteCompletionHandler completionHandler)Get a match for an accepted invite Possible reasons for error: 1.static java.lang.Objectnew_objc()voidqueryActivityWithCompletionHandler(GKMatchmaker.Block_queryActivityWithCompletionHandler completionHandler)Query the server for recent activity for all the player groups of that game.voidqueryPlayerGroupActivityWithCompletionHandler(long playerGroup, GKMatchmaker.Block_queryPlayerGroupActivityWithCompletionHandler completionHandler)Query the server for recent activity in the specified player group.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetInviteHandler(GKMatchmaker.Block_setInviteHandler value)Deprecated.static voidsetVersion_static(long aVersion)static GKMatchmakersharedMatchmaker()The shared matchmakervoidstartBrowsingForNearbyPlayersWithHandler(GKMatchmaker.Block_startBrowsingForNearbyPlayersWithHandler reachableHandler)Start browsing for nearby players that can be invited to a match.voidstartBrowsingForNearbyPlayersWithReachableHandler(GKMatchmaker.Block_startBrowsingForNearbyPlayersWithReachableHandler reachableHandler)Deprecated.voidstopBrowsingForNearbyPlayers()Stop browsing for nearby players.static org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static GKMatchmaker alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
sharedMatchmaker
public static GKMatchmaker sharedMatchmaker()
The shared matchmaker
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
addPlayersToMatchMatchRequestCompletionHandler
public void addPlayersToMatchMatchRequestCompletionHandler(GKMatch match, GKMatchRequest matchRequest, GKMatchmaker.Block_addPlayersToMatchMatchRequestCompletionHandler completionHandler)
Auto-matching or invites to add additional players to a peer-to-peer match for the specified request. Error will be nil on success: Possible reasons for error: 1. Communications failure 2. Timeout
-
cancel
public void cancel()
Cancel matchmaking and any pending invites
-
cancelInviteToPlayer
@Deprecated public void cancelInviteToPlayer(java.lang.String playerID)
Deprecated.This method is obsolete. It will never be invoked and its implementation does nothing**
-
cancelPendingInviteToPlayer
public void cancelPendingInviteToPlayer(GKPlayer player)
Cancel a pending invitation to a player
-
findMatchForRequestWithCompletionHandler
public void findMatchForRequestWithCompletionHandler(GKMatchRequest request, GKMatchmaker.Block_findMatchForRequestWithCompletionHandler completionHandler)
Auto-matching or invites to find a peer-to-peer match for the specified request. Error will be nil on success: Possible reasons for error: 1. Communications failure 2. Unauthenticated player 3. Timeout Note that the players property on the returned GKMatch instance will only contain connected players. It will initially be empty as players are connecting. Implement the GKMatchDelegate method match:player:didChangeConnectionState: to listen for updates to the GKMatch instance's players property.
-
findPlayersForHostedMatchRequestWithCompletionHandler
@Deprecated public void findPlayersForHostedMatchRequestWithCompletionHandler(GKMatchRequest request, GKMatchmaker.Block_findPlayersForHostedMatchRequestWithCompletionHandler completionHandler)
Deprecated.This method is obsolete. It will never be invoked and its implementation does nothing**
-
findPlayersForHostedRequestWithCompletionHandler
public void findPlayersForHostedRequestWithCompletionHandler(GKMatchRequest request, GKMatchmaker.Block_findPlayersForHostedRequestWithCompletionHandler completionHandler)
Auto-matching or invites for host-client match request. This returns a list of player identifiers to be included in the match. Determination and communication with the host is not part of this API. When inviting, no player identifiers will be returned. Player responses will be reported via the inviteeResponseHandler. Possible reasons for error: 1. Communications failure 2. Unauthenticated player 3. Timeout
-
finishMatchmakingForMatch
public void finishMatchmakingForMatch(GKMatch match)
Call this when finished with all programmatic P2P invites/matchmaking, for compatability with connected players using GKMatchmakerViewController.
-
init
public GKMatchmaker init()
-
inviteHandler
@Deprecated public GKMatchmaker.Block_inviteHandler_ret inviteHandler()
Deprecated.
-
matchForInviteCompletionHandler
public void matchForInviteCompletionHandler(GKInvite invite, GKMatchmaker.Block_matchForInviteCompletionHandler completionHandler)
Get a match for an accepted invite Possible reasons for error: 1. Communications failure 2. Invite cancelled
-
queryActivityWithCompletionHandler
public void queryActivityWithCompletionHandler(GKMatchmaker.Block_queryActivityWithCompletionHandler completionHandler)
Query the server for recent activity for all the player groups of that game. Error will be nil on success. Possible reasons for error: 1. Communications failure
-
queryPlayerGroupActivityWithCompletionHandler
public void queryPlayerGroupActivityWithCompletionHandler(long playerGroup, GKMatchmaker.Block_queryPlayerGroupActivityWithCompletionHandler completionHandler)Query the server for recent activity in the specified player group. A larger value indicates that a given group has seen more recent activity. Error will be nil on success. Possible reasons for error: 1. Communications failure
-
setInviteHandler
@Deprecated public void setInviteHandler(GKMatchmaker.Block_setInviteHandler value)
Deprecated.
-
startBrowsingForNearbyPlayersWithHandler
public void startBrowsingForNearbyPlayersWithHandler(GKMatchmaker.Block_startBrowsingForNearbyPlayersWithHandler reachableHandler)
Start browsing for nearby players that can be invited to a match. The reachableHandler will be called for each player found with a compatible game. It may be called more than once for the same player if that player ever becomes unreachable (e.g. moves out of range). You should call stopBrowsingForNearbyPlayers when finished browsing.
-
startBrowsingForNearbyPlayersWithReachableHandler
@Deprecated public void startBrowsingForNearbyPlayersWithReachableHandler(GKMatchmaker.Block_startBrowsingForNearbyPlayersWithReachableHandler reachableHandler)
Deprecated.This method is obsolete. It will never be invoked and its implementation does nothing**
-
stopBrowsingForNearbyPlayers
public void stopBrowsingForNearbyPlayers()
Stop browsing for nearby players.
-
-