Package org.robovm.apple.gamekit
Class GKMatch
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.gamekit.GKMatch
- All Implemented Interfaces:
NSObjectProtocol,ObjCProtocol
public class GKMatch extends NSObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGKMatch.GKMatchPtrNested 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
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description GKMatch()protectedGKMatch(NSObject.Handle h, long handle)protectedGKMatch(NSObject.SkipInit skipInit) -
Method Summary
Modifier and Type Method Description voidchooseBestHostingPlayer(VoidBlock1<GKPlayer> completionHandler)voidchooseBestHostPlayer(VoidBlock1<NSString> completionHandler)Deprecated.Deprecated in iOS 8.0.voiddisconnect()GKMatchDelegategetDelegate()longgetExpectedPlayerCount()List<String>getPlayerIDs()Deprecated.Deprecated in iOS 8.0.NSArray<GKPlayer>getPlayers()GKVoiceChatgetVoiceChat(String name)voidrematch(VoidBlock2<GKMatch,NSError> completionHandler)booleansendDataToAllPlayers(NSData data, GKMatchSendDataMode mode)booleansendDataToPlayers(NSData data, List<String> playerIDs, GKMatchSendDataMode mode)Deprecated.Deprecated in iOS 8.0.booleansendDataToPlayers(NSData data, NSArray<GKPlayer> players, GKMatchSendDataMode mode)voidsetDelegate(GKMatchDelegate 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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Constructor Details
-
GKMatch
public GKMatch() -
GKMatch
-
GKMatch
-
-
Method Details
-
getPlayers
-
getDelegate
-
setDelegate
-
getExpectedPlayerCount
public long getExpectedPlayerCount() -
getPlayerIDs
Deprecated.Deprecated in iOS 8.0. This is never invoked and its implementation does nothing, use players instead. -
sendDataToPlayers
public boolean sendDataToPlayers(NSData data, NSArray<GKPlayer> players, GKMatchSendDataMode mode) throws NSErrorException- Throws:
NSErrorException
-
sendDataToAllPlayers
- Throws:
NSErrorException
-
disconnect
public void disconnect() -
getVoiceChat
-
chooseBestHostingPlayer
-
rematch
-
chooseBestHostPlayer
Deprecated.Deprecated in iOS 8.0. This is never invoked and its implementation does nothing, use chooseBestHostingPlayerWithCompletionHandler: -
sendDataToPlayers
@Deprecated public boolean sendDataToPlayers(NSData data, List<String> playerIDs, GKMatchSendDataMode mode) throws NSErrorExceptionDeprecated.Deprecated in iOS 8.0. This is never invoked and its implementation does nothing, use sendData:toPlayers:dataMode:error:- Throws:
NSErrorException
-