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​(@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