Пример #1
0
 public void UnregisterOnTangoConnect(OnTangoConnectEventHandler handler)
 {
     if (handler != null)
     {
         m_onTangoConnect -= handler;
     }
 }
 /// <summary>
 /// Register to get an event callback when connected to the Tango service.
 ///
 /// The passed event will get called once connected to the Tango service.  Registering
 /// after already connected will cause the event to not fire until disconnected and then
 /// connecting again.
 /// </summary>
 /// <param name="handler">Event to call.</param>
 public void RegisterOnTangoConnect(OnTangoConnectEventHandler handler)
 {
     if (handler != null)
     {
         OnTangoConnect += handler;
     }
 }
Пример #3
0
 /// <summary>
 /// Unregister from the callback when connected to the Tango service.
 /// 
 /// See TangoApplication.RegisterOnTangoConnect for more details.
 /// </summary>
 /// <param name="handler">Event to remove.</param>
 private void _UnregisterOnTangoConnect(OnTangoConnectEventHandler handler)
 {
     if (handler != null)
     {
         OnTangoConnect -= handler;
     }
 }
Пример #4
0
 /// <summary>
 /// Unregister from the callback when connected to the Tango service.
 /// 
 /// See TangoApplication.RegisterOnTangoConnect for more details.
 /// </summary>
 /// <param name="handler">Event to remove.</param>
 public void UnregisterOnTangoConnect(OnTangoConnectEventHandler handler)
 {
     if (handler != null)
     {
         OnTangoConnect -= handler;
     }
 }
 /// <summary>
 /// Registers the on tango connect.
 /// </summary>
 /// <param name="handler">Handler.</param>
 public void RegisterOnTangoConnect(OnTangoConnectEventHandler handler)
 {
     if(handler != null)
     {
         m_onTangoConnect += handler;
     }
 }