Class GKMatchmaker

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

    public class GKMatchmaker
    extends NSObject
    Since:
    Available in iOS 4.1 and later.
    • Constructor Detail

      • GKMatchmaker

        public GKMatchmaker()
      • GKMatchmaker

        protected GKMatchmaker​(NSObject.Handle h,
                               long handle)
    • Method Detail

      • getInviteHandler

        @Deprecated
        public org.robovm.objc.block.VoidBlock2<GKInvite,​NSArray<?>> getInviteHandler()
        Deprecated.
        Deprecated in iOS 7.0. Use registerListener on GKLocalPlayer to register an object that implements the GKInviteEventListenerProtocol instead
        Since:
        Available in iOS 4.1 and later.
      • setInviteHandler

        @Deprecated
        public void setInviteHandler​(org.robovm.objc.block.VoidBlock2<GKInvite,​NSArray<?>> v)
        Deprecated.
        Deprecated in iOS 7.0. Use registerListener on GKLocalPlayer to register an object that implements the GKInviteEventListenerProtocol instead
        Since:
        Available in iOS 4.1 and later.
      • match

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

        public void findPlayersForHostedRequest​(GKMatchRequest request,
                                                org.robovm.objc.block.VoidBlock2<NSArray<GKPlayer>,​NSError> completionHandler)
        Since:
        Available in iOS 8.0 and later.
      • addPlayersToMatch

        public void addPlayersToMatch​(GKMatch match,
                                      GKMatchRequest matchRequest,
                                      org.robovm.objc.block.VoidBlock1<NSError> completionHandler)
      • cancel

        public void cancel()
      • cancelPendingInvite

        public void cancelPendingInvite​(GKPlayer player)
        Since:
        Available in iOS 8.0 and later.
      • finishMatchmaking

        public void finishMatchmaking​(GKMatch match)
        Since:
        Available in iOS 6.0 and later.
      • queryPlayerGroupActivity

        public void queryPlayerGroupActivity​(long playerGroup,
                                             org.robovm.objc.block.VoidBlock2<java.lang.Long,​NSError> completionHandler)
      • queryActivity

        public void queryActivity​(org.robovm.objc.block.VoidBlock2<java.lang.Long,​NSError> completionHandler)
      • startNearbyPlayersBrowsing

        public void startNearbyPlayersBrowsing​(org.robovm.objc.block.VoidBlock2<GKPlayer,​java.lang.Boolean> reachableHandler)
        Since:
        Available in iOS 8.0 and later.
      • stopBrowsingForNearbyPlayers

        public void stopBrowsingForNearbyPlayers()
        Since:
        Available in iOS 6.0 and later.
      • getSharedMatchmaker

        public static GKMatchmaker getSharedMatchmaker()
      • startBrowsingForNearbyPlayers

        @Deprecated
        public void startBrowsingForNearbyPlayers​(org.robovm.objc.block.VoidBlock2<NSString,​java.lang.Boolean> reachableHandler)
        Deprecated.
        Deprecated in iOS 8.0. Use startBrowsingForNearbyPlayersWithHandler: instead
        Since:
        Available in iOS 6.0 and later.
      • cancelInvite

        @Deprecated
        public void cancelInvite​(java.lang.String playerID)
        Deprecated.
        Deprecated in iOS 8.0. use cancelPendingInviteToPlayer:
        Since:
        Available in iOS 6.0 and later.
      • findPlayers

        @Deprecated
        public void findPlayers​(GKMatchRequest request,
                                org.robovm.objc.block.VoidBlock2<NSArray<NSString>,​NSError> completionHandler)
        Deprecated.
        Deprecated in iOS 8.0. use findPlayersForHostedRequest:
        Since:
        Available in iOS 4.1 and later.