CancelDownloadFile
public struct CancelDownloadFile : Codable, Equatable, TDFunction
Stops the downloading of a file. If a file has already been downloaded, does nothing
-
Undocumented
Declaration
Swift
public typealias Result = Ok -
Identifier of a file to stop downloading
Declaration
Swift
public let fileId: Int32 -
Pass true to stop downloading only if it hasn’t been started, i.e. request hasn’t been sent to server
Declaration
Swift
public let onlyIfPending: Bool -
Stops the downloading of a file. If a file has already been downloaded, does nothing
Declaration
Swift
public init(fileId: Int32, onlyIfPending: Bool)Parameters
fileIdIdentifier of a file to stop downloading
onlyIfPendingPass true to stop downloading only if it hasn’t been started, i.e. request hasn’t been sent to server
View on GitHub
Install in Dash
CancelDownloadFile Structure Reference