Пример #1
0
        /// <summary>
        /// Attach an onTangoEvent callback. The callback is called each time a Tango event happens.
        /// </summary>
        /// <param name="callback">Callback method.</param>
        internal static void SetCallback(APIOnEventAvailable callback)
        {
            int returnValue = API.TangoService_connectOnTangoEvent(callback);

            if (returnValue != Common.ErrorType.TANGO_SUCCESS)
            {
                Debug.Log("TangoEventProvider.SetCallback() Callback was not set!");
            }
            else
            {
                Debug.Log("TangoEventProvider.SetCallback() Callback was set!");
            }
        }
Пример #2
0
 public static int TangoService_connectOnTangoEvent(APIOnEventAvailable callback)
 {
     return(Common.ErrorType.TANGO_SUCCESS);
 }
Пример #3
0
 public static extern int TangoService_connectOnTangoEvent(APIOnEventAvailable callback);