Package apple.gamekit.protocol
Interface GKMatchDelegate
-
public interface GKMatchDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidmatchDidFailWithError(@NotNull GKMatch match, @Nullable NSError error)The match was unable to be established with any players due to an error.default voidmatchDidReceiveDataForRecipientFromRemotePlayer(@NotNull GKMatch match, @NotNull NSData data, @NotNull GKPlayer recipient, @NotNull GKPlayer player)API-Since: 9.0default voidmatchDidReceiveDataFromPlayer(@NotNull GKMatch match, @NotNull NSData data, @NotNull java.lang.String playerID)Deprecated.default voidmatchDidReceiveDataFromRemotePlayer(@NotNull GKMatch match, @NotNull NSData data, @NotNull GKPlayer player)The match received data sent from the player.default voidmatchPlayerDidChangeConnectionState(@NotNull GKMatch match, @NotNull GKPlayer player, long state)The player state changed (eg.default voidmatchPlayerDidChangeState(@NotNull GKMatch match, @NotNull java.lang.String playerID, long state)Deprecated.default booleanmatchShouldReinviteDisconnectedPlayer(@NotNull GKMatch match, @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.default booleanmatchShouldReinvitePlayer(@NotNull GKMatch match, @NotNull java.lang.String playerID)Deprecated.
-
-
-
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
-
-