17class FileDownloadManager :
public ::std::enable_shared_from_this<::FileDownloadManager> {
39 FileDownloadManager& operator=(FileDownloadManager
const&);
40 FileDownloadManager(FileDownloadManager
const&);
41 FileDownloadManager();
47 virtual ~FileDownloadManager() =
default;
49 virtual ~FileDownloadManager();
52 virtual void update();
54 virtual void cancelDownload();
56 virtual float getDownloadProgress()
const;
63 MCNAPI FileDownloadManager(
64 ::std::shared_ptr<::IFilePicker> filePicker,
65 ::std::shared_ptr<::IFileChunkDownloader> fileDownloader,
66 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform> appPlatform
69 MCNAPI
void _writeData(
70 ::std::vector<uchar> data,
75 ::std::function<
void(uint64,
bool)> writeComplete
78 MCNAPI
void downloadFile(
79 ::std::string
const& downloadId,
80 ::std::string
const& downloadUrl,
82 uint64 expectedFileSize,
83 uint64 fromByteOffset,
84 ::std::string
const& downloadVersion,
85 ::std::function<
void(
::Core::Path const&, ::DownloaderResult)> onCompleteCallback,
89 MCNAPI
void pauseDownload();
98 ::std::shared_ptr<::IFilePicker> filePicker,
99 ::std::shared_ptr<::IFileChunkDownloader> fileDownloader,
100 ::Bedrock::NotNullNonOwnerPtr<::AppPlatform> appPlatform
117 MCNAPI
void $update();
119 MCNAPI
void $cancelDownload();
121 MCNAPI
float $getDownloadProgress()
const;