Class GKMatchRequest

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class GKMatchRequest
extends NSObject
  • Constructor Details

    • GKMatchRequest

      public GKMatchRequest()
    • GKMatchRequest

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

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

    • getMinPlayers

      public long getMinPlayers()
    • setMinPlayers

      public void setMinPlayers​(long v)
    • getMaxPlayers

      public long getMaxPlayers()
    • setMaxPlayers

      public void setMaxPlayers​(long v)
    • getPlayerGroup

      public long getPlayerGroup()
    • setPlayerGroup

      public void setPlayerGroup​(long v)
    • getPlayerAttributes

      public int getPlayerAttributes()
    • setPlayerAttributes

      public void setPlayerAttributes​(int v)
    • getRecipients

      public NSArray<GKPlayer> getRecipients()
    • setRecipients

      public void setRecipients​(NSArray<GKPlayer> v)
    • getInviteMessage

      public String getInviteMessage()
    • setInviteMessage

      public void setInviteMessage​(String v)
    • getDefaultNumberOfPlayers

      public long getDefaultNumberOfPlayers()
    • setDefaultNumberOfPlayers

      public void setDefaultNumberOfPlayers​(long v)
    • isRestrictToAutomatch

      @Deprecated public boolean isRestrictToAutomatch()
      Deprecated.
      Deprecated in iOS 14.0. Set the matchmakingMode of GKMatchmakerViewController instead.
      Since:
      Available in iOS 13.0 and later.
    • setRestrictToAutomatch

      @Deprecated public void setRestrictToAutomatch​(boolean v)
      Deprecated.
      Deprecated in iOS 14.0. Set the matchmakingMode of GKMatchmakerViewController instead.
      Since:
      Available in iOS 13.0 and later.
    • getRecipientResponseHandler

      public VoidBlock2<GKPlayer,​GKInviteRecipientResponse> getRecipientResponseHandler()
    • setRecipientResponseHandler

      public void setRecipientResponseHandler​(VoidBlock2<GKPlayer,​GKInviteRecipientResponse> v)
    • getInviteeResponseHandler

      @Deprecated public VoidBlock2<NSString,​GKInviteRecipientResponse> getInviteeResponseHandler()
      Deprecated.
      Deprecated in iOS 8.0. use recipientResponseHandler
    • setInviteeResponseHandler

      @Deprecated public void setInviteeResponseHandler​(VoidBlock2<NSString,​GKInviteRecipientResponse> v)
      Deprecated.
      Deprecated in iOS 8.0. use recipientResponseHandler
    • getPlayersToInvite

      @Deprecated public List<String> getPlayersToInvite()
      Deprecated.
      Deprecated in iOS 8.0. This property is obsolete, use recipients instead
    • setPlayersToInvite

      @Deprecated public void setPlayersToInvite​(List<String> v)
      Deprecated.
      Deprecated in iOS 8.0. This property is obsolete, use recipients instead
    • getMaxPlayersAllowedForMatchType

      public static long getMaxPlayersAllowedForMatchType​(GKMatchType matchType)