Interface GKMatchmakerViewControllerDelegate


  • public interface GKMatchmakerViewControllerDelegate
    • Method Detail

      • matchmakerViewControllerDidFailWithError

        void matchmakerViewControllerDidFailWithError​(GKMatchmakerViewController viewController,
                                                      NSError error)
        Matchmaking has failed with an error
      • matchmakerViewControllerDidFindHostedPlayers

        default void matchmakerViewControllerDidFindHostedPlayers​(GKMatchmakerViewController viewController,
                                                                  NSArray<? extends GKPlayer> players)
        Players have been found for a server-hosted game, the game should start
      • matchmakerViewControllerDidFindMatch

        default void matchmakerViewControllerDidFindMatch​(GKMatchmakerViewController viewController,
                                                          GKMatch match)
        A peer-to-peer match has been found, the game should start
      • matchmakerViewControllerDidFindPlayers

        @Deprecated
        default void matchmakerViewControllerDidFindPlayers​(GKMatchmakerViewController viewController,
                                                            NSArray<java.lang.String> playerIDs)
        Deprecated.
        These protocol methods are obsoleted. They will never be invoked and their implementation does nothing**
      • matchmakerViewControllerDidReceiveAcceptFromHostedPlayer

        @Deprecated
        default void matchmakerViewControllerDidReceiveAcceptFromHostedPlayer​(GKMatchmakerViewController viewController,
                                                                              java.lang.String playerID)
        Deprecated.
      • matchmakerViewControllerHostedPlayerDidAccept

        default void matchmakerViewControllerHostedPlayerDidAccept​(GKMatchmakerViewController viewController,
                                                                   GKPlayer player)
        An invited player has accepted a hosted invite. Apps should connect through the hosting server and then update the player's connected state (using setConnected:forHostedPlayer:)
      • matchmakerViewControllerWasCancelled

        void matchmakerViewControllerWasCancelled​(GKMatchmakerViewController viewController)
        The user has cancelled matchmaking