Package apple.gamekit
Class GKMatch
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.gamekit.GKMatch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGKMatch.Block_chooseBestHostingPlayerWithCompletionHandlerstatic interfaceGKMatch.Block_chooseBestHostPlayerWithCompletionHandlerstatic interfaceGKMatch.Block_rematchWithCompletionHandler-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGKMatch(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()static GKMatchalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)voidchooseBestHostingPlayerWithCompletionHandler(GKMatch.Block_chooseBestHostingPlayerWithCompletionHandler completionHandler)Choose the best host from among the connected players using gathered estimates for bandwidth and packet loss.voidchooseBestHostPlayerWithCompletionHandler(GKMatch.Block_chooseBestHostPlayerWithCompletionHandler completionHandler)Deprecated.static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()GKMatchDelegatedelegate()all the GKPlayers in the matchstatic java.lang.Stringdescription_static()voiddisconnect()Disconnect the match.longexpectedPlayerCount()static longhash_static()GKMatchinit()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)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()NSArray<java.lang.String>playerIDs()Deprecated.NSArray<? extends GKPlayer>players()voidrematchWithCompletionHandler(GKMatch.Block_rematchWithCompletionHandler completionHandler)Auto-matching to recreate a previous peer-to-peer match that became disconnected.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)booleansendDataToAllPlayersWithDataModeError(NSData data, long mode, org.moe.natj.general.ptr.Ptr<NSError> error)Asynchronously broadcasts data to all players.booleansendDataToPlayersDataModeError(NSData data, NSArray<? extends GKPlayer> players, long mode, org.moe.natj.general.ptr.Ptr<NSError> error)Asynchronously send data to one or more GKPlayers.booleansendDataToPlayersWithDataModeError(NSData data, NSArray<java.lang.String> playerIDs, long mode, org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.voidsetDelegate(GKMatchDelegate value)all the GKPlayers in the matchvoidsetDelegate_unsafe(GKMatchDelegate value)all the GKPlayers in the matchstatic voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static longversion_static()GKVoiceChatvoiceChatWithName(java.lang.String name)Join a named voice chat channel Will return nil if parental controls are turned on-
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 GKMatch 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)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
chooseBestHostPlayerWithCompletionHandler
@Deprecated public void chooseBestHostPlayerWithCompletionHandler(GKMatch.Block_chooseBestHostPlayerWithCompletionHandler completionHandler)
Deprecated.This method is obsolete. It will never be invoked and its implementation does nothing**
-
chooseBestHostingPlayerWithCompletionHandler
public void chooseBestHostingPlayerWithCompletionHandler(GKMatch.Block_chooseBestHostingPlayerWithCompletionHandler completionHandler)
Choose the best host from among the connected players using gathered estimates for bandwidth and packet loss. This is intended for applications that wish to implement a client-server model on top of the match. The returned player ID will be nil if the best host cannot currently be determined (e.g. players are still connecting).
-
delegate
public GKMatchDelegate delegate()
all the GKPlayers in the match
-
disconnect
public void disconnect()
Disconnect the match. This will show all other players in the match that the local player has disconnected. This should be called before releasing the match instance.
-
expectedPlayerCount
public long expectedPlayerCount()
-
playerIDs
@Deprecated public NSArray<java.lang.String> playerIDs()
Deprecated.NSStrings of player identifiers in the match
-
rematchWithCompletionHandler
public void rematchWithCompletionHandler(GKMatch.Block_rematchWithCompletionHandler completionHandler)
Auto-matching to recreate a previous peer-to-peer match that became disconnected. A new match with the same set of players will be returned by the completion handler. All players should perform this when the match has ended for auto-matching to succeed. Error will be nil on success. Possible reasons for error: 1. Communications failure 2. Timeout
-
sendDataToPlayersDataModeError
public boolean sendDataToPlayersDataModeError(NSData data, NSArray<? extends GKPlayer> players, long mode, org.moe.natj.general.ptr.Ptr<NSError> error)
Asynchronously send data to one or more GKPlayers. Returns YES if delivery started, NO if unable to start sending and error will be set.
-
sendDataToPlayersWithDataModeError
@Deprecated public boolean sendDataToPlayersWithDataModeError(NSData data, NSArray<java.lang.String> playerIDs, long mode, org.moe.natj.general.ptr.Ptr<NSError> error)
Deprecated.This method is obsolete. It will never be invoked and its implementation does nothing**
-
sendDataToAllPlayersWithDataModeError
public boolean sendDataToAllPlayersWithDataModeError(NSData data, long mode, org.moe.natj.general.ptr.Ptr<NSError> error)
Asynchronously broadcasts data to all players. Returns YES if delivery started, NO if unable to start sending and error will be set.
-
setDelegate_unsafe
public void setDelegate_unsafe(GKMatchDelegate value)
all the GKPlayers in the match
-
setDelegate
public void setDelegate(GKMatchDelegate value)
all the GKPlayers in the match
-
voiceChatWithName
public GKVoiceChat voiceChatWithName(java.lang.String name)
Join a named voice chat channel Will return nil if parental controls are turned on
-
-