public static void SetFinishNotify(DownLoadFinishNotify fun) { m_funNotifyFinish = fun; }
/// <summary> /// 清空下载列表 /// </summary> public static void EmptyTask() { s_DownLoadTasks.Clear(); m_funNotifyFinish = null; }
public static void AddDownTaskImmediate(string serverPath, string localPath, string name, DownLoadFinishNotify onFinish, DownLoadProgress onProgress = null) { SetFinishNotify(onFinish); DownLoadTask task = new DownLoadTask(serverPath, localPath, name, onProgress); AddDownTask(task); StartDown(); }
/// <summary> /// 清空下载列表 /// </summary> public static void EmptyTask() { m_lTask.Clear(); m_funNotifyFinish = null; }