SuspendDownloads added to public API

This commit is contained in:
DeKon0650 2020-11-26 23:55:40 +03:00
parent 5c30b6039a
commit 110c0f2bad

View File

@ -161,5 +161,16 @@ public static async Task<bool> StopPlaytimeTrackingForAllItems()
var result = await Internal.StopPlaytimeTrackingForAllItems();
return result.Value.Result == Result.OK;
}
}
/// <summary>
/// Suspends all workshop downloads.
/// Downloads will be suspended until you resume them by calling <see cref="ResumeDownloads"/> or when the game ends.
/// </summary>
public static void SuspendDownloads() => Internal.SuspendDownloads(true);
/// <summary>
/// Resumes all workshop downloads
/// </summary>
public static void ResumeDownloads() => Internal.SuspendDownloads(false);
}
}