/// <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!"); } }
public static int TangoService_connectOnTangoEvent(APIOnEventAvailable callback) { return(Common.ErrorType.TANGO_SUCCESS); }
public static extern int TangoService_connectOnTangoEvent(APIOnEventAvailable callback);