fileDownload

@NotNull
open fun fileDownload(@NotNull name: @NotNull String, @NotNull callback: @NotNull DownloadCallback): @NotNull TransferController
@NotNull
open fun fileDownload(@NotNull name: @NotNull String, @NotNull dataOutput: @NotNull OutputStream, @NotNull callback: @NotNull StreamDownloadCallback): @NotNull TransferController

Start image download.

Multiple calls will queue multiple downloads, executed sequentially. This includes file downloads executed from fileDownload.

The download may be controlled using the TransferController returned by this method.

Return

The object used to control this download.

Parameters

callback

Receives callbacks from the download.

See also