Example #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!");
            }
        }
        /// <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!");
            }
        }
Example #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!");
            }
        }
Example #4
0
 public static int TangoService_connectOnTangoEvent(TangoService_onEventAvailable onEventAvaialable)
 {
     return Common.ErrorType.TANGO_SUCCESS;
 }
Example #5
0
 public static extern int TangoService_connectOnTangoEvent(TangoService_onEventAvailable onEventAvaialable);
 public static int TangoService_connectOnTangoEvent(TangoService_onEventAvailable onEventAvaialable)
 {
     return(Common.ErrorType.TANGO_SUCCESS);
 }
 public static extern int TangoService_connectOnTangoEvent(TangoService_onEventAvailable onEventAvaialable);