Package apple.gamekit.protocol
Interface GKSessionDelegate
-
public interface GKSessionDelegateCallbacks to the GKSession delegate.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidsessionConnectionWithPeerFailedWithError(GKSession session, java.lang.String peerID, NSError error)Indicates a connection error occurred with a peer, which includes connection request failures, or disconnects due to timeouts.default voidsessionDidFailWithError(GKSession session, NSError error)Indicates an error occurred with the session such as failing to make available.default voidsessionDidReceiveConnectionRequestFromPeer(GKSession session, java.lang.String peerID)Indicates a connection request was received from another peer.default voidsessionPeerDidChangeState(GKSession session, java.lang.String peerID, int state)
-
-
-
Method Detail
-
sessionConnectionWithPeerFailedWithError
default void sessionConnectionWithPeerFailedWithError(GKSession session, java.lang.String peerID, NSError error)
Indicates a connection error occurred with a peer, which includes connection request failures, or disconnects due to timeouts.
-
sessionDidFailWithError
default void sessionDidFailWithError(GKSession session, NSError error)
Indicates an error occurred with the session such as failing to make available.
-
sessionDidReceiveConnectionRequestFromPeer
default void sessionDidReceiveConnectionRequestFromPeer(GKSession session, java.lang.String peerID)
Indicates a connection request was received from another peer. Accept by calling -acceptConnectionFromPeer: Deny by calling -denyConnectionFromPeer:
-
sessionPeerDidChangeState
default void sessionPeerDidChangeState(GKSession session, java.lang.String peerID, int state)
-
-