コード例 #1
0
        public static DownloadStatus SetupDownloadStatus(Context context, ulong totalDownloadSize, bool fancyLogging)
        {
            var downloadStatus = new DownloadStatus(totalDownloadSize, (DownloadStatus status) => Utilities.LogDownloadProgress(status, fancyLogging));

            if (!fancyLogging)
            {
                downloadStatus.UpdateIntervalMS = 60000;                 // No need to spam the log too much
            }
            return(downloadStatus);
        }