Class GKMatch

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    public class GKMatch
    extends NSObject
    Since:
    Available in iOS 4.1 and later.
    • Method Detail

      • getPlayers

        public NSArray<GKPlayer> getPlayers()
        Since:
        Available in iOS 8.0 and later.
      • getExpectedPlayerCount

        public long getExpectedPlayerCount()
      • getPlayerIDs

        @Deprecated
        public java.util.List<java.lang.String> getPlayerIDs()
        Deprecated.
        Deprecated in iOS 8.0. use players
        Since:
        Available in iOS 4.1 and later.
      • disconnect

        public void disconnect()
      • getVoiceChat

        public GKVoiceChat getVoiceChat​(java.lang.String name)
      • chooseBestHostingPlayer

        public void chooseBestHostingPlayer​(org.robovm.objc.block.VoidBlock1<GKPlayer> completionHandler)
        Since:
        Available in iOS 8.0 and later.
      • rematch

        public void rematch​(org.robovm.objc.block.VoidBlock2<GKMatch,​NSError> completionHandler)
        Since:
        Available in iOS 6.0 and later.
      • chooseBestHostPlayer

        @Deprecated
        public void chooseBestHostPlayer​(org.robovm.objc.block.VoidBlock1<NSString> completionHandler)
        Deprecated.
        Deprecated in iOS 8.0. use chooseBestHostingPlayerWithCompletionHandler:
        Since:
        Available in iOS 6.0 and later.
      • sendDataToPlayers

        @Deprecated
        public boolean sendDataToPlayers​(NSData data,
                                         java.util.List<java.lang.String> playerIDs,
                                         GKMatchSendDataMode mode)
                                  throws NSErrorException
        Deprecated.
        Deprecated in iOS 8.0. use sendData:toPlayers:dataMode:error:
        Throws:
        NSErrorException
        Since:
        Available in iOS 4.1 and later.