UploadService
@objc(FSUploadService)
public final class UploadService : NSObject, NetworkingService
extension UploadService: URLSessionDataDelegate
Service used for uploading files.
-
Shared
UploadService
instance.Declaration
Swift
public static let shared: UploadService
-
Whether uploads should be performed on a background process. Defaults to
false
.Declaration
Swift
public var useBackgroundSession: Bool { get set }
-
Undocumented
Declaration
Swift
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void)
-
Undocumented
Declaration
Swift
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)