Interface GKMatchDelegate


  • public interface GKMatchDelegate
    • Method Detail

      • matchDidFailWithError

        default void matchDidFailWithError​(@NotNull
                                           @NotNull GKMatch match,
                                           @Nullable
                                           @Nullable NSError error)
        The match was unable to be established with any players due to an error. API-Since: 4.1
      • matchDidReceiveDataForRecipientFromRemotePlayer

        default void matchDidReceiveDataForRecipientFromRemotePlayer​(@NotNull
                                                                     @NotNull GKMatch match,
                                                                     @NotNull
                                                                     @NotNull NSData data,
                                                                     @NotNull
                                                                     @NotNull GKPlayer recipient,
                                                                     @NotNull
                                                                     @NotNull GKPlayer player)
        API-Since: 9.0
      • matchDidReceiveDataFromPlayer

        @Deprecated
        default void matchDidReceiveDataFromPlayer​(@NotNull
                                                   @NotNull GKMatch match,
                                                   @NotNull
                                                   @NotNull NSData data,
                                                   @NotNull
                                                   @NotNull java.lang.String playerID)
        Deprecated.
        These protocol methods are obsoleted. They will never be invoked and their implementation does nothing** API-Since: 4.1 Deprecated-Since: 8.0
      • matchDidReceiveDataFromRemotePlayer

        default void matchDidReceiveDataFromRemotePlayer​(@NotNull
                                                         @NotNull GKMatch match,
                                                         @NotNull
                                                         @NotNull NSData data,
                                                         @NotNull
                                                         @NotNull GKPlayer player)
        The match received data sent from the player. API-Since: 8.0
      • matchPlayerDidChangeConnectionState

        default void matchPlayerDidChangeConnectionState​(@NotNull
                                                         @NotNull GKMatch match,
                                                         @NotNull
                                                         @NotNull GKPlayer player,
                                                         long state)
        The player state changed (eg. connected or disconnected) API-Since: 4.1
      • matchPlayerDidChangeState

        @Deprecated
        default void matchPlayerDidChangeState​(@NotNull
                                               @NotNull GKMatch match,
                                               @NotNull
                                               @NotNull java.lang.String playerID,
                                               long state)
        Deprecated.
        API-Since: 4.1 Deprecated-Since: 8.0
      • matchShouldReinviteDisconnectedPlayer

        default boolean matchShouldReinviteDisconnectedPlayer​(@NotNull
                                                              @NotNull GKMatch match,
                                                              @NotNull
                                                              @NotNull GKPlayer player)
        This method is called when the match is interrupted; if it returns YES, a new invite will be sent to attempt reconnection. This is supported only for 1v1 games API-Since: 8.0
      • matchShouldReinvitePlayer

        @Deprecated
        default boolean matchShouldReinvitePlayer​(@NotNull
                                                  @NotNull GKMatch match,
                                                  @NotNull
                                                  @NotNull java.lang.String playerID)
        Deprecated.
        API-Since: 5.0 Deprecated-Since: 8.0