Tango User Experience exception listener.
Inheritance: UnityEngine.AndroidJavaProxy
コード例 #1
0
ファイル: TangoUx.cs プロジェクト: nigellima/knee-measurer
        /// <summary>
        /// Register the specified tangoObject.
        /// </summary>
        /// <param name="tangoObject">Tango object.</param>
        public void Register(Object tangoObject)
        {
            if (m_enableUXLibrary)
            {
                ITangoUX tangoUX = tangoObject as ITangoUX;

                if (tangoUX != null)
                {
                    UxExceptionEventListener.RegisterOnUxExceptionEventHandler(tangoUX.OnUxExceptionEventHandler);
                }

                ITangoUXMultithreaded tangoUXMultithreaded = tangoObject as ITangoUXMultithreaded;

                if (tangoUXMultithreaded != null)
                {
                    UxExceptionEventListener.RegisterOnOnUxExceptionEventMultithreadedAvailable(tangoUXMultithreaded.OnUxExceptionEventMultithreadedAvailableEventHandler);
                }
            }
        }
コード例 #2
0
ファイル: TangoUx.cs プロジェクト: nigellima/knee-measurer
 /// <summary>
 /// Disperse any events related to TangoUX functionality.
 /// </summary>
 public void Update()
 {
     UxExceptionEventListener.SendIfAvailable();
 }