@@ -38,6 +38,7 @@ private func getResultCallback<T>(completion: @escaping (Result<T, Error>) -> Vo
38
38
39
39
public extension StorageReference {
40
40
/// Asynchronously retrieves a long lived download URL with a revokable token.
41
+ ///
41
42
/// This can be used to share the file with others, but can be revoked by a developer
42
43
/// in the Firebase Console.
43
44
///
@@ -48,6 +49,7 @@ public extension StorageReference {
48
49
}
49
50
50
51
/// Asynchronously downloads the object at the `StorageReference` to a `Data` object.
52
+ ///
51
53
/// A `Data` of the provided max size will be allocated, so ensure that the device has enough
52
54
/// memory to complete. For downloading large files, the `write` API may be a better option.
53
55
@@ -73,6 +75,7 @@ public extension StorageReference {
73
75
}
74
76
75
77
/// Resumes a previous `list` call, starting after a pagination token.
78
+ ///
76
79
/// Returns the next set of items (files) and prefixes (folders) under this StorageReference.
77
80
///
78
81
/// "/" is treated as a path delimiter. Firebase Storage does not support unsupported object
@@ -82,10 +85,10 @@ public extension StorageReference {
82
85
/// Only available for projects using Firebase Rules Version 2.
83
86
///
84
87
/// - Parameters:
85
- /// - maxResults The maximum number of results to return in a single page. Must be
88
+ /// - maxResults: The maximum number of results to return in a single page. Must be
86
89
/// greater than 0 and at most 1000.
87
- /// - pageToken A page token from a previous call to list.
88
- /// - completion A completion handler that will be invoked with the next items and
90
+ /// - pageToken: A page token from a previous call to list.
91
+ /// - completion: A completion handler that will be invoked with the next items and
89
92
/// prefixes under the current StorageReference. It returns a `Result` enum
90
93
/// with either the list or an `Error`.
91
94
func list( maxResults: Int64 ,
@@ -105,9 +108,9 @@ public extension StorageReference {
105
108
/// Only available for projects using Firebase Rules Version 2.
106
109
///
107
110
/// - Parameters:
108
- /// - maxResults The maximum number of results to return in a single page. Must be
111
+ /// - maxResults: The maximum number of results to return in a single page. Must be
109
112
/// greater than 0 and at most 1000.
110
- /// - completion A completion handler that will be invoked with the next items and
113
+ /// - completion: A completion handler that will be invoked with the next items and
111
114
/// prefixes under the current `StorageReference`. It returns a `Result` enum
112
115
/// with either the list or an `Error`.
113
116
func list( maxResults: Int64 ,
@@ -125,7 +128,7 @@ public extension StorageReference {
125
128
/// Only available for projects using Firebase Rules Version 2.
126
129
///
127
130
/// - Parameters:
128
- /// - completion A completion handler that will be invoked with all items and prefixes
131
+ /// - completion: A completion handler that will be invoked with all items and prefixes
129
132
/// under the current StorageReference. It returns a `Result` enum with either the
130
133
/// list or an `Error`.
131
134
func listAll( completion: @escaping ( Result < StorageListResult , Error > ) -> Void ) {
@@ -136,10 +139,10 @@ public extension StorageReference {
136
139
/// This is not recommended for large files, and one should instead upload a file from disk.
137
140
///
138
141
/// - Parameters:
139
- /// - uploadData The `Data` to upload.
140
- /// - metadata `StorageMetadata` containing additional information (MIME type, etc.)
142
+ /// - uploadData: The `Data` to upload.
143
+ /// - metadata: `StorageMetadata` containing additional information (MIME type, etc.)
141
144
/// about the object being uploaded.
142
- /// - completion A completion block that returns a `Result` enum with either the
145
+ /// - completion: A completion block that returns a `Result` enum with either the
143
146
/// object metadata or an `Error`.
144
147
///
145
148
/// - Returns: An instance of `StorageUploadTask`, which can be used to monitor or manage
@@ -157,10 +160,10 @@ public extension StorageReference {
157
160
/// Asynchronously uploads a file to the currently specified `StorageReference`.
158
161
///
159
162
/// - Parameters:
160
- /// - from A URL representing the system file path of the object to be uploaded.
161
- /// - metadata `StorageMetadata` containing additional information (MIME type, etc.)
163
+ /// - from: A URL representing the system file path of the object to be uploaded.
164
+ /// - metadata: `StorageMetadata` containing additional information (MIME type, etc.)
162
165
/// about the object being uploaded.
163
- /// - completion A completion block that returns a `Result` enum with either the
166
+ /// - completion: A completion block that returns a `Result` enum with either the
164
167
/// object metadata or an `Error`.
165
168
///
166
169
/// - Returns: An instance of `StorageUploadTask`, which can be used to monitor or manage
@@ -178,8 +181,8 @@ public extension StorageReference {
178
181
/// Updates the metadata associated with an object at the current path.
179
182
///
180
183
/// - Parameters:
181
- /// - metadata A `StorageMetadata` object with the metadata to update.
182
- /// - completion A completion block which returns a `Result` enum with either the
184
+ /// - metadata: A `StorageMetadata` object with the metadata to update.
185
+ /// - completion: A completion block which returns a `Result` enum with either the
183
186
/// object metadata or an `Error`.
184
187
func updateMetadata( _ metadata: StorageMetadata ,
185
188
completion: @escaping ( Result < StorageMetadata , Error > ) -> Void ) {
@@ -189,8 +192,8 @@ public extension StorageReference {
189
192
/// Asynchronously downloads the object at the current path to a specified system filepath.
190
193
///
191
194
/// - Parameters:
192
- /// - toFile A file system URL representing the path the object should be downloaded to.
193
- /// - completion A completion block that fires when the file download completes. The
195
+ /// - toFile: A file system URL representing the path the object should be downloaded to.
196
+ /// - completion: A completion block that fires when the file download completes. The
194
197
/// block returns a `Result` enum with either an NSURL pointing to the file
195
198
/// path of the downloaded file or an `Error`.
196
199
///
0 commit comments