/// <summary> /// Save current recorded sparse map to file. /// </summary> /// <param name="sparseMapPath">Absolute location on phone.</param> /// <returns>If the function call succeed.</returns> public static bool SaveSparseMap(string sparseMapPath) { if (!m_isInit) { DebugLogger.GetInstance.WriteToLog(DebugLogger.EDebugLevel.DEBUG_WARN, "VIOProvider.SaveSparseMap : Not Initialized!"); return(false); } Common.RetCodes ret_code = (Common.RetCodes)TangoVIOAPI.VIOSaveSparseMap( TangoApplication.Instance.Handle, sparseMapPath); if (ret_code != Common.RetCodes.kCAPISuccess) { ErrorHandler.instance.presentErrorMessage( "Application initialization failed" + ret_code); return(false); } return(true); }
public bool SaveSparseMap(string sparseMapPath) { return((Common.RetCodes)TangoVIOAPI.VIOSaveSparseMap(mVIOHandler, sparseMapPath) == Common.RetCodes.kCAPISuccess); }