Beispiel #1
0
 public override void FailedWithError(GKSession session, NSError error)
 {
     if (cbFailedWithError != null)
     {
         cbFailedWithError(session, new GKPeerConnectionEventArgs(session, null, error));
     }
 }
Beispiel #2
0
 public override void PeerConnectionRequest(GKSession session, string peerID)
 {
     if (cbConnectionRequest != null)
     {
         cbConnectionRequest(session, new GKPeerConnectionEventArgs(session, peerID, null));
     }
 }
Beispiel #3
0
 public override void PeerConnectionFailed(GKSession session, string peerID, NSError error)
 {
     if (cbConnectionFailed != null)
     {
         cbConnectionFailed(session, new GKPeerConnectionEventArgs(session, peerID, error));
     }
 }
Beispiel #4
0
 void Receive(NSData data, string peer, GKSession session, IntPtr context)
 {
     if (receiver != null)
     {
         receiver(session, new GKDataReceivedEventArgs(data, peer, session));
     }
 }
Beispiel #5
0
 public override void PeerChangedState(GKSession session, string peerID, GKPeerConnectionState state)
 {
     if (cbPeerChanged != null)
     {
         cbPeerChanged(session, new GKPeerChangedStateEventArgs(session, peerID, state));
     }
 }
Beispiel #6
0
 public GKPeerConnectionEventArgs(GKSession session, string peerID, NSError error)
 {
     Session = session;
     PeerID  = peerID;
     Error   = error;
 }
Beispiel #7
0
 public GKPeerChangedStateEventArgs(GKSession session, string peerID, GKPeerConnectionState state)
 {
     Session = session;
     PeerID  = peerID;
     State   = state;
 }
Beispiel #8
0
 public GKDataReceivedEventArgs(NSData data, string peer, GKSession session)
 {
     Data    = data;
     PeerID  = peer;
     Session = session;
 }
Beispiel #9
0
 void Receive(NSData data, string peer, GKSession session, IntPtr context)
 {
     if (receiver != null)
         receiver (session, new GKDataReceivedEventArgs (data, peer, session));
 }
Beispiel #10
0
 public GKPeerChangedStateEventArgs(GKSession session, string peerID, GKPeerConnectionState state)
 {
     Session = session;
     PeerID = peerID;
     State = state;
 }
Beispiel #11
0
 public GKPeerConnectionEventArgs(GKSession session, string peerID, NSError error)
 {
     Session = session;
     PeerID = peerID;
     Error = error;
 }
Beispiel #12
0
 public GKDataReceivedEventArgs(NSData data, string peer, GKSession session)
 {
     Data = data;
     PeerID = peer;
     Session = session;
 }
Beispiel #13
0
 public override void FailedWithError(GKSession session, NSError error)
 {
     if (cbFailedWithError != null)
         cbFailedWithError (session, new GKPeerConnectionEventArgs (session, null, error));
 }
Beispiel #14
0
 public override void PeerConnectionFailed(GKSession session, string peerID, NSError error)
 {
     if (cbConnectionFailed != null)
         cbConnectionFailed (session, new GKPeerConnectionEventArgs (session, peerID, error));
 }
Beispiel #15
0
 public override void PeerConnectionRequest(GKSession session, string peerID)
 {
     if (cbConnectionRequest != null)
         cbConnectionRequest (session, new GKPeerConnectionEventArgs (session, peerID, null));
 }
Beispiel #16
0
 public override void PeerChangedState(GKSession session, string peerID, GKPeerConnectionState state)
 {
     if (cbPeerChanged != null)
         cbPeerChanged (session, new GKPeerChangedStateEventArgs (session, peerID, state));
 }