Interface GKSessionDelegate


  • @Deprecated
    public interface GKSessionDelegate
    Deprecated.
    Callbacks to the GKSession delegate. API-Since: 3.0 Deprecated-Since: 7.0
    • Method Detail

      • sessionConnectionWithPeerFailedWithError

        default void sessionConnectionWithPeerFailedWithError​(@NotNull
                                                              @NotNull GKSession session,
                                                              @NotNull
                                                              @NotNull java.lang.String peerID,
                                                              @NotNull
                                                              @NotNull NSError error)
        Deprecated.
        Indicates a connection error occurred with a peer, which includes connection request failures, or disconnects due to timeouts.
      • sessionDidFailWithError

        default void sessionDidFailWithError​(@NotNull
                                             @NotNull GKSession session,
                                             @NotNull
                                             @NotNull NSError error)
        Deprecated.
        Indicates an error occurred with the session such as failing to make available.
      • sessionDidReceiveConnectionRequestFromPeer

        default void sessionDidReceiveConnectionRequestFromPeer​(@NotNull
                                                                @NotNull GKSession session,
                                                                @NotNull
                                                                @NotNull java.lang.String peerID)
        Deprecated.
        Indicates a connection request was received from another peer. Accept by calling -acceptConnectionFromPeer: Deny by calling -denyConnectionFromPeer:
      • sessionPeerDidChangeState

        default void sessionPeerDidChangeState​(@NotNull
                                               @NotNull GKSession session,
                                               @NotNull
                                               @NotNull java.lang.String peerID,
                                               int state)
        Deprecated.