Package apple.gamekit.protocol
Interface GKInviteEventListener
-
- All Known Subinterfaces:
GKLocalPlayerListener
public interface GKInviteEventListenerGKInviteEventListener uses the GKLocalPlayerListener mechanism on GKLocalPlayer to listen to the two kinds of invite events that a game must respond to
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidplayerDidAcceptInvite(@NotNull GKPlayer player, @NotNull GKInvite invite)player:didAcceptInvite: gets called when another player accepts the invite from the local player API-Since: 7.0default voidplayerDidRequestMatchWithPlayers(@NotNull GKPlayer player, @NotNull NSArray<java.lang.String> playerIDsToInvite)Deprecated.default voidplayerDidRequestMatchWithRecipients(@NotNull GKPlayer player, @NotNull NSArray<? extends GKPlayer> recipientPlayers)didRequestMatchWithRecipients: gets called when the player chooses to play with another player from Game Center and it launches the game to start matchmaking API-Since: 8.0
-
-
-
Method Detail
-
playerDidAcceptInvite
default void playerDidAcceptInvite(@NotNull @NotNull GKPlayer player, @NotNull @NotNull GKInvite invite)player:didAcceptInvite: gets called when another player accepts the invite from the local player API-Since: 7.0
-
playerDidRequestMatchWithPlayers
@Deprecated default void playerDidRequestMatchWithPlayers(@NotNull @NotNull GKPlayer player, @NotNull @NotNull NSArray<java.lang.String> playerIDsToInvite)Deprecated.This method is obsolete. It will never be invoked and its implementation does nothing** API-Since: 7.0 Deprecated-Since: 8.0
-
playerDidRequestMatchWithRecipients
default void playerDidRequestMatchWithRecipients(@NotNull @NotNull GKPlayer player, @NotNull @NotNull NSArray<? extends GKPlayer> recipientPlayers)didRequestMatchWithRecipients: gets called when the player chooses to play with another player from Game Center and it launches the game to start matchmaking API-Since: 8.0
-
-