Example #1
0
 private void sendResourceCompleted(U3DXT.iOS.Native.Foundation.NSError err)
 {
     if (err != null)
     {
         Log("ERROR: " + err.LocalizedDescription());
     }
 }
 /// <summary>
 /// Initializes a new instance of the
 /// <see cref="U3DXT.iOS.Multipeer.SessionFinishedReceivingResourceWithNameEventArgs"/> class.
 /// </summary>
 /// <param name="_session">_session.</param>
 /// <param name="_resourceName">_resource name.</param>
 /// <param name="_peerID">_peer I.</param>
 /// <param name="_localURL">_local UR.</param>
 /// <param name="_error">_error.</param>
 public SessionFinishedReceivingResourceWithNameEventArgs(MCSession _session, string _resourceName, MCPeerID _peerID, U3DXT.iOS.Native.Foundation.NSURL _localURL, U3DXT.iOS.Native.Foundation.NSError _error)
 {
     session = _session;
     resourceName = _resourceName;
     peerID = _peerID;
     localURL = _localURL;
     error = _error;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the
 /// <see cref="U3DXT.iOS.Multipeer.SessionFinishedReceivingResourceWithNameEventArgs"/> class.
 /// </summary>
 /// <param name="_session">_session.</param>
 /// <param name="_resourceName">_resource name.</param>
 /// <param name="_peerID">_peer I.</param>
 /// <param name="_localURL">_local UR.</param>
 /// <param name="_error">_error.</param>
 public SessionFinishedReceivingResourceWithNameEventArgs(MCSession _session, string _resourceName, MCPeerID _peerID, U3DXT.iOS.Native.Foundation.NSURL _localURL, U3DXT.iOS.Native.Foundation.NSError _error)
 {
     session      = _session;
     resourceName = _resourceName;
     peerID       = _peerID;
     localURL     = _localURL;
     error        = _error;
 }
Example #4
0
 internal static void OnSessionDidFinishReceivingResourceWithName(MCSession session, string resourceName, MCPeerID peerID, U3DXT.iOS.Native.Foundation.NSURL localURL, U3DXT.iOS.Native.Foundation.NSError error)
 {
     if (_sessionFinishedReceivingResourceWithNameHandlers != null)
     {
         _sessionFinishedReceivingResourceWithNameHandlers(null,
                                                           new SessionFinishedReceivingResourceWithNameEventArgs(session, resourceName, peerID, localURL, error));
     }
 }