void Receive(NSData data, string peer, GKSession session, IntPtr context) { if (receiver != null) { receiver(session, new GKDataReceivedEventArgs(data, peer, session)); } }
public override void FailedWithError(GKSession session, NSError error) { if (cbFailedWithError != null) { cbFailedWithError(session, new GKPeerConnectionEventArgs(session, null, error)); } }
public override void PeerConnectionFailed(GKSession session, string peerID, NSError error) { if (cbConnectionFailed != null) { cbConnectionFailed(session, new GKPeerConnectionEventArgs(session, peerID, error)); } }
public override void PeerConnectionRequest(GKSession session, string peerID) { if (cbConnectionRequest != null) { cbConnectionRequest(session, new GKPeerConnectionEventArgs(session, peerID, null)); } }
public override void PeerChangedState(GKSession session, string peerID, GKPeerConnectionState state) { if (cbPeerChanged != null) { cbPeerChanged(session, new GKPeerChangedStateEventArgs(session, peerID, state)); } }
public GKPeerConnectionEventArgs(GKSession session, string?peerID, NSError?error) { Session = session; PeerID = peerID; Error = error; }
public GKDataReceivedEventArgs(NSData data, string peer, GKSession session) { Data = data; PeerID = peer; Session = session; }
public GKPeerChangedStateEventArgs(GKSession session, string peerID, GKPeerConnectionState state) { Session = session; PeerID = peerID; State = state; }