コード例 #1
0
 public void UnregisterOnTangoConnect(OnTangoConnectEventHandler handler)
 {
     if (handler != null)
     {
         m_onTangoConnect -= handler;
     }
 }
コード例 #2
0
 /// <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
ファイル: TangoApplication.cs プロジェクト: tsi25/Zen
 /// <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;
     }
 }
コード例 #5
0
 /// <summary>
 /// Registers the on tango connect.
 /// </summary>
 /// <param name="handler">Handler.</param>
 public void RegisterOnTangoConnect(OnTangoConnectEventHandler handler)
 {
     if(handler != null)
     {
         m_onTangoConnect += handler;
     }
 }