Package apple.gamekit.protocol
Interface GKMatchmakerViewControllerDelegate
-
public interface GKMatchmakerViewControllerDelegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidmatchmakerViewControllerDidFailWithError(GKMatchmakerViewController viewController, NSError error)Matchmaking has failed with an errordefault voidmatchmakerViewControllerDidFindHostedPlayers(GKMatchmakerViewController viewController, NSArray<? extends GKPlayer> players)Players have been found for a server-hosted game, the game should startdefault voidmatchmakerViewControllerDidFindMatch(GKMatchmakerViewController viewController, GKMatch match)A peer-to-peer match has been found, the game should startdefault voidmatchmakerViewControllerDidFindPlayers(GKMatchmakerViewController viewController, NSArray<java.lang.String> playerIDs)Deprecated.default voidmatchmakerViewControllerDidReceiveAcceptFromHostedPlayer(GKMatchmakerViewController viewController, java.lang.String playerID)Deprecated.default voidmatchmakerViewControllerHostedPlayerDidAccept(GKMatchmakerViewController viewController, GKPlayer player)An invited player has accepted a hosted invite.voidmatchmakerViewControllerWasCancelled(GKMatchmakerViewController viewController)The user has cancelled matchmaking
-
-
-
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
-
-