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(@NotNull GKMatchmakerViewController viewController, @NotNull NSError error)Matchmaking has failed with an error API-Since: 4.1default voidmatchmakerViewControllerDidFindHostedPlayers(@NotNull GKMatchmakerViewController viewController, @NotNull NSArray<? extends GKPlayer> players)Players have been found for a server-hosted game, the game should start API-Since: 8.0default voidmatchmakerViewControllerDidFindMatch(@NotNull GKMatchmakerViewController viewController, @NotNull GKMatch match)A peer-to-peer match has been found, the game should start API-Since: 4.1default voidmatchmakerViewControllerDidFindPlayers(@NotNull GKMatchmakerViewController viewController, @NotNull NSArray<java.lang.String> playerIDs)Deprecated.default voidmatchmakerViewControllerDidReceiveAcceptFromHostedPlayer(@NotNull GKMatchmakerViewController viewController, @NotNull java.lang.String playerID)Deprecated.default voidmatchmakerViewControllerHostedPlayerDidAccept(@NotNull GKMatchmakerViewController viewController, @NotNull GKPlayer player)An invited player has accepted a hosted invite.voidmatchmakerViewControllerWasCancelled(@NotNull GKMatchmakerViewController viewController)The user has cancelled matchmaking API-Since: 4.1
-
-
-
Method Detail
-
matchmakerViewControllerDidFailWithError
void matchmakerViewControllerDidFailWithError(@NotNull @NotNull GKMatchmakerViewController viewController, @NotNull @NotNull NSError error)Matchmaking has failed with an error API-Since: 4.1
-
matchmakerViewControllerDidFindHostedPlayers
default void matchmakerViewControllerDidFindHostedPlayers(@NotNull @NotNull GKMatchmakerViewController viewController, @NotNull @NotNull NSArray<? extends GKPlayer> players)Players have been found for a server-hosted game, the game should start API-Since: 8.0
-
matchmakerViewControllerDidFindMatch
default void matchmakerViewControllerDidFindMatch(@NotNull @NotNull GKMatchmakerViewController viewController, @NotNull @NotNull GKMatch match)A peer-to-peer match has been found, the game should start API-Since: 4.1
-
matchmakerViewControllerDidFindPlayers
@Deprecated default void matchmakerViewControllerDidFindPlayers(@NotNull @NotNull GKMatchmakerViewController viewController, @NotNull @NotNull NSArray<java.lang.String> playerIDs)Deprecated.These protocol methods are obsoleted. They will never be invoked and their implementation does nothing** API-Since: 4.1 Deprecated-Since: 8.0
-
matchmakerViewControllerDidReceiveAcceptFromHostedPlayer
@Deprecated default void matchmakerViewControllerDidReceiveAcceptFromHostedPlayer(@NotNull @NotNull GKMatchmakerViewController viewController, @NotNull @NotNull java.lang.String playerID)Deprecated.API-Since: 5.0 Deprecated-Since: 8.0
-
matchmakerViewControllerHostedPlayerDidAccept
default void matchmakerViewControllerHostedPlayerDidAccept(@NotNull @NotNull GKMatchmakerViewController viewController, @NotNull @NotNull 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:) API-Since: 8.0
-
matchmakerViewControllerWasCancelled
void matchmakerViewControllerWasCancelled(@NotNull @NotNull GKMatchmakerViewController viewController)The user has cancelled matchmaking API-Since: 4.1
-
-