/// <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!"); } }
public static int TangoService_connectOnPoseAvailable( int count, TangoCoordinateFramePair[] framePairs, APIOnPoseAvailable callback) { return(Common.ErrorType.TANGO_SUCCESS); }
public static extern int TangoService_connectOnPoseAvailable( int count, TangoCoordinateFramePair[] framePairs, APIOnPoseAvailable callback);