public interface GKSessionDelegate
Modifier and Type | Method and Description |
---|---|
void |
connectionWithPeerFailed(GKSession p1,
String p2,
NSError p3)
It is after a failure to connect to another peer.
|
void |
didFailWithError(GKSession p1,
NSError p2)
It is used when GKSession in case of an error.
|
void |
didReceiveConnectionRequestFromPeer(GKSession p1,
String p2)
It is used when a remote peer request connection to the GKSession.
|
void |
peerDidChangeState(GKSession p1,
String p2,
int p3)
It is used when a peer changes state.
|
void didFailWithError(GKSession p1, NSError p2)
p1
- The GKSession that corresponds to this delegate.p2
- The error that occurred.void peerDidChangeState(GKSession p1, String p2, int p3)
p1
- The GKSession that corresponds to this delegate.p2
- The peer that changed state.p3
- The new state of the peer.void didReceiveConnectionRequestFromPeer(GKSession p1, String p2)
p1
- The GKSession that corresponds to this delegate.p2
- The remote peer that requests connection.Copyright © 2020. All rights reserved.