Class GKMatchmaker

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class GKMatchmaker
extends NSObject
  • Constructor Details

    • GKMatchmaker

      public GKMatchmaker()
    • GKMatchmaker

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

      protected GKMatchmaker​(NSObject.SkipInit skipInit)
  • Method Details

    • getInviteHandler

      @Deprecated public VoidBlock2<GKInvite,​NSArray<?>> getInviteHandler()
      Deprecated.
      Deprecated in iOS 7.0. Use registerListener on GKLocalPlayer to register an object that implements the GKInviteEventListenerProtocol instead
    • setInviteHandler

      @Deprecated public void setInviteHandler​(VoidBlock2<GKInvite,​NSArray<?>> v)
      Deprecated.
      Deprecated in iOS 7.0. Use registerListener on GKLocalPlayer to register an object that implements the GKInviteEventListenerProtocol instead
    • match

      public void match​(GKInvite invite, VoidBlock2<GKMatch,​NSError> completionHandler)
    • findMatch

      public void findMatch​(GKMatchRequest request, VoidBlock2<GKMatch,​NSError> completionHandler)
    • findPlayersForHostedRequest

      public void findPlayersForHostedRequest​(GKMatchRequest request, VoidBlock2<NSArray<GKPlayer>,​NSError> completionHandler)
    • addPlayersToMatch

      public void addPlayersToMatch​(GKMatch match, GKMatchRequest matchRequest, VoidBlock1<NSError> completionHandler)
    • cancel

      public void cancel()
    • cancelPendingInvite

      public void cancelPendingInvite​(GKPlayer player)
    • finishMatchmaking

      public void finishMatchmaking​(GKMatch match)
    • queryPlayerGroupActivity

      public void queryPlayerGroupActivity​(long playerGroup, VoidBlock2<Long,​NSError> completionHandler)
    • queryActivity

      public void queryActivity​(VoidBlock2<Long,​NSError> completionHandler)
    • startNearbyPlayersBrowsing

      public void startNearbyPlayersBrowsing​(VoidBlock2<GKPlayer,​Boolean> reachableHandler)
    • stopBrowsingForNearbyPlayers

      public void stopBrowsingForNearbyPlayers()
    • getSharedMatchmaker

      public static GKMatchmaker getSharedMatchmaker()
    • startBrowsingForNearbyPlayers

      @Deprecated public void startBrowsingForNearbyPlayers​(VoidBlock2<NSString,​Boolean> reachableHandler)
      Deprecated.
      Deprecated in iOS 8.0. This is never invoked and its implementation does nothing, Use startBrowsingForNearbyPlayersWithHandler: instead
    • cancelInvite

      @Deprecated public void cancelInvite​(String playerID)
      Deprecated.
      Deprecated in iOS 8.0. This is never invoked and its implementation does nothing, use cancelPendingInviteToPlayer:
    • findPlayers

      @Deprecated public void findPlayers​(GKMatchRequest request, VoidBlock2<NSArray<NSString>,​NSError> completionHandler)
      Deprecated.
      Deprecated in iOS 8.0. This is never invoked and its implementation does nothing, use findPlayersForHostedRequest: