Skip to content

Commit c7a92bb

Browse files
author
Ruben Nine
committed
Improving API documentation.
1 parent e77dcb9 commit c7a92bb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

FilestackSDK/Public/Extensions/Client+ObjC.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extension Client {
3030
/// of the upload process as data is uploaded to the server. `nil` by default.
3131
/// - Parameter completionHandler: Adds a handler to be called once the upload has finished.
3232
///
33-
/// - Returns: A `MultipartUpload` object that allows monitoring progress, cancelling the upload request, etc.
33+
/// - Returns: An `Uploader` that allows starting, cancelling and monitoring the upload.
3434
@objc public func uploadURL(using localURL: NSURL,
3535
options: UploadOptions = .defaults,
3636
queue: DispatchQueue = .main,
@@ -62,7 +62,7 @@ extension Client {
6262
/// of the upload process as data is uploaded to the server. `nil` by default.
6363
/// - Parameter completionHandler: Adds a handler to be called once the upload has finished.
6464
///
65-
/// - Returns: A `MultifileUpload` object that allows monitoring progress, cancelling the upload request, etc.
65+
/// - Returns: An `Uploader` that allows starting, cancelling and monitoring the upload.
6666
@objc public func uploadMultipleURLs(using localURLs: [NSURL],
6767
options: UploadOptions = .defaults,
6868
queue: DispatchQueue = .main,
@@ -94,7 +94,7 @@ extension Client {
9494
/// of the upload process as data is uploaded to the server. `nil` by default.
9595
/// - Parameter completionHandler: Adds a handler to be called once the upload has finished.
9696
///
97-
/// - Returns: An object conforming to `Uploader` that allows starting, cancelling and monitoring the upload.
97+
/// - Returns: An `Uploader` that allows starting, cancelling and monitoring the upload.
9898
@objc public func uploadData(using data: NSData,
9999
options: UploadOptions = .defaults,
100100
queue: DispatchQueue = .main,
@@ -126,7 +126,7 @@ extension Client {
126126
/// of the upload process as data is uploaded to the server. `nil` by default.
127127
/// - Parameter completionHandler: Adds a handler to be called once the upload has finished.
128128
///
129-
/// - Returns: An object conforming to `Uploader` that allows starting, cancelling and monitoring the upload.
129+
/// - Returns: An `Uploader` that allows starting, cancelling and monitoring the upload.
130130
@objc public func uploadMultipleData(using multipleData: [NSData],
131131
options: UploadOptions = .defaults,
132132
queue: DispatchQueue = .main,

FilestackSDK/Public/Models/Client.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ import Foundation
118118
/// of the upload process as data is uploaded to the server. `nil` by default.
119119
/// - Parameter completionHandler: Adds a handler to be called once the upload has finished.
120120
///
121-
/// - Returns: An object conforming to `Uploader` that allows starting, cancelling and monitoring the upload.
121+
/// - Returns: An `Uploader` that allows starting, cancelling and monitoring the upload.
122122
@discardableResult
123123
public func upload(using uploadable: Uploadable,
124124
options: UploadOptions = .defaults,
@@ -154,8 +154,8 @@ import Foundation
154154
/// of the upload process as data is uploaded to the server. `nil` by default.
155155
/// - Parameter completionHandler: Adds a handler to be called once the upload has finished.
156156
///
157-
/// - Returns: An object conforming to `Uploader` and `DeferredAdd` that allows starting, cancelling and monitoring
158-
/// the upload, plus adding `Uploadables` at a later time.
157+
/// - Returns: An `Uploader & DeferredAdd` that allows starting, cancelling and monitoring the upload, plus adding
158+
/// `Uploadables` at a later time.
159159
@discardableResult
160160
public func upload(using uploadables: [Uploadable]? = nil,
161161
options: UploadOptions = .defaults,

0 commit comments

Comments
 (0)