Exemplo n.º 1
0
        /// <summary>
        /// Sets the callback that is called when a new tango
        /// event has been issued by the Tango Service.
        /// </summary>
        /// <param name="callback">Callback.</param>
        public static void SetCallback(TangoService_onEventAvailable callback)
        {
            int returnValue = EventsAPI.TangoService_connectOnTangoEvent(callback);
            if (returnValue != Common.ErrorType.TANGO_SUCCESS)
            {
				Debug.Log("TangoEvents.SetCallback() Callback was not set!");
            }
            else
            {
				Debug.Log("TangoEvents.SetCallback() Callback was set!");
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Sets the callback that is called when a new tango
        /// event has been issued by the Tango Service.
        /// </summary>
        /// <param name="callback">Callback.</param>
        public static void SetCallback(TangoService_onEventAvailable callback)
        {
            int returnValue = EventsAPI.TangoService_connectOnTangoEvent(callback);

            if (returnValue != Common.ErrorType.TANGO_SUCCESS)
            {
                Debug.Log("TangoEvents.SetCallback() Callback was not set!");
            }
            else
            {
                Debug.Log("TangoEvents.SetCallback() Callback was set!");
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Sets the callback that is called when a new tango
        /// event has been issued by the Tango Service.
        /// </summary>
        /// <param name="callback">Callback.</param>
        public static void SetCallback(TangoService_onEventAvailable callback)
        {
            int returnValue = EventsAPI.TangoService_connectOnTangoEvent(callback);

            if (returnValue != Common.ErrorType.TANGO_SUCCESS)
            {
                DebugLogger.GetInstance.WriteToLog(DebugLogger.EDebugLevel.DEBUG_ERROR,
                                                   "TangoEvents.SetCallback() Callback was not set!");
            }
            else
            {
                DebugLogger.GetInstance.WriteToLog(DebugLogger.EDebugLevel.DEBUG_INFO,
                                                   "TangoEvents.SetCallback() Callback was set!");
            }
        }
Exemplo n.º 4
0
 public static int TangoService_connectOnTangoEvent(TangoService_onEventAvailable onEventAvaialable)
 {
     return Common.ErrorType.TANGO_SUCCESS;
 }
Exemplo n.º 5
0
 public static extern int TangoService_connectOnTangoEvent(TangoService_onEventAvailable onEventAvaialable);
Exemplo n.º 6
0
 public static int TangoService_connectOnTangoEvent(TangoService_onEventAvailable onEventAvaialable)
 {
     return(Common.ErrorType.TANGO_SUCCESS);
 }
Exemplo n.º 7
0
 public static extern int TangoService_connectOnTangoEvent(TangoService_onEventAvailable onEventAvaialable);