Unregister() public method

Unregister from Tango callbacks. See TangoApplication.Register for more details.
public Unregister ( System tangoObject ) : void
tangoObject System Object to stop getting Tango callbacks from.
return void
Beispiel #1
0
 /// <summary>
 /// Start this instance.
 /// </summary>
 public void reStart()
 {
     m_tangoApplication.Unregister(this);
     m_tangoApplication.Register(this);
     m_tangoApplication.Shutdown();
     m_tangoApplication.Startup(null);
     AndroidHelper.InitTangoUx();
     SetHoldPosture(m_holdPosture);
 }
Beispiel #2
0
 /// <summary>
 /// Raises the destroy event.
 /// </summary>
 public void OnDestroy()
 {
     if (m_tangoApplication)
     {
         m_tangoApplication.Unregister(this);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Raises the destroy event.
 /// </summary>
 void OnDestroy()
 {
     if (m_tangoApplication)
     {
         m_tangoApplication.UnregisterPermissionsCallback(_OnTangoPermissionsEvent);
         m_tangoApplication.UnregisterOnTangoConnect(_OnTangoServiceConnected);
         m_tangoApplication.UnregisterOnTangoDisconnect(_OnTangoServiceDisconnected);
         m_tangoApplication.Unregister(this);
     }
 }