Interface GKInviteEventListener

  • All Known Subinterfaces:
    GKLocalPlayerListener

    public interface GKInviteEventListener
    GKInviteEventListener uses the GKLocalPlayerListener mechanism on GKLocalPlayer to listen to the two kinds of invite events that a game must respond to
    • 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