Exemplo n.º 1
0
        /// <summary>
        /// Set the C callback for the Tango pose interface.
        /// </summary>
        /// <param name="framePairs">Passed in to the C API.</param>
        /// <param name="callback">Callback method.</param>
        internal static void SetCallback(TangoCoordinateFramePair[] framePairs, APIOnPoseAvailable callback)
        {
            int returnValue = API.TangoService_connectOnPoseAvailable(framePairs.Length, framePairs, callback);

            if (returnValue != Common.ErrorType.TANGO_SUCCESS)
            {
                Debug.Log(CLASS_NAME + ".SetCallback() Callback was not set!");
            }
            else
            {
                Debug.Log(CLASS_NAME + ".SetCallback() OnPose callback was set!");
            }
        }
Exemplo n.º 2
0
 public static int TangoService_connectOnPoseAvailable(
     int count, TangoCoordinateFramePair[] framePairs, APIOnPoseAvailable callback)
 {
     return(Common.ErrorType.TANGO_SUCCESS);
 }
Exemplo n.º 3
0
 public static extern int TangoService_connectOnPoseAvailable(
     int count, TangoCoordinateFramePair[] framePairs, APIOnPoseAvailable callback);