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(GKPlayer player, GKInvite invite)player:didAcceptInvite: gets called when another player accepts the invite from the local playerdefault voidplayerDidRequestMatchWithPlayers(GKPlayer player, NSArray<java.lang.String> playerIDsToInvite)Deprecated.default voidplayerDidRequestMatchWithRecipients(GKPlayer player, 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
-
-
-
Method Detail
-
playerDidAcceptInvite
default void playerDidAcceptInvite(GKPlayer player, GKInvite invite)
player:didAcceptInvite: gets called when another player accepts the invite from the local player
-
playerDidRequestMatchWithPlayers
@Deprecated default void playerDidRequestMatchWithPlayers(GKPlayer player, NSArray<java.lang.String> playerIDsToInvite)
Deprecated.This method is obsolete. It will never be invoked and its implementation does nothing**
-
playerDidRequestMatchWithRecipients
default void playerDidRequestMatchWithRecipients(GKPlayer player, 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
-
-