Package-level declarations
Types
A Task that can be cancelled and reports progress, as the Android SDK's CancellableTask.
Only the snapshot type is declared here: the Task members, and the platform hooks that the shared non-JVM StorageTask leaves abstract (StorageTask.reference, StorageTask.snapshotWith and the control functions), are implemented by FileDownloadTaskImpl. The metadata compilation of this source set rejects an actual class that implements a member its expect class inherits as abstract from another source set's actual ("the modalities are different").
A download to a file, as the Android SDK's FileDownloadTask; TaskSnapshot reports its progress.
A download to a file on JS, which the SDK cannot do: the task fails at once with UnsupportedOperationException.
A download to a file on JS, which the SDK cannot do: the task fails at once with UnsupportedOperationException.
Cloud Storage for Firebase, as the Android SDK's com.google.firebase.storage.FirebaseStorage. The download retry time, file downloads and FileDownloadTask exist on Android, the JVM and Apple platforms (nonJsMain); the JS SDK downloads through URLs only.
A page of the items and prefixes (folders) under a reference, as the Android SDK's ListResult.
Receives the snapshots of a paused task; the Android SDK's OnPausedListener.
Receives the snapshots of a task as it makes progress; the Android SDK's OnProgressListener.
An error of Cloud Storage, as the Android SDK's StorageException; errorCode is one of the ERROR_* constants.
The metadata of an object in Cloud Storage, as the Android SDK's StorageMetadata: the server-set fields are read from a fetched object, the settable fields are built with Builder (chained setters or, from Kotlin, properties: storageMetadata { contentType = "text/plain" }).
A reference to an object or folder in Cloud Storage, as the Android SDK's StorageReference. Files are given as android.net.Uri (the firebase-app stand-in off Android): a file: URL, or a path on Apple platforms. The members taking JDK types are declared through the error-deprecated java.io.File and java.io.InputStream stand-ins, pointing common code at the kotlinx-io getFile(Path) and putStream(RawSource) extensions (see StorageSources.kt).
A long-running Cloud Storage operation with progress, pause, resume and cancel, as the Android SDK's StorageTask. Listeners are called on the thread that completes or progresses the task on Apple platforms and JS. The Task members (isComplete, result, exception, ...) are inherited; the task subclasses are abstract, as instances only come from a StorageReference.
The state of a StorageTask as emitted by taskState.
An upload to a StorageReference, as the Android SDK's UploadTask; TaskSnapshot reports its progress.
Properties
The FirebaseStorage of the default FirebaseApp; the Android SDK's Firebase.storage.
The progress and pauses of this task as a Flow, which completes with the task.
Functions
The bytes downloaded so far.
The items of the page.
The bytes uploaded so far.
The total size of the download.
The prefixes of the page.
The total size of the upload.
The token of the next page.
The metadata of the uploaded object, once complete.
The resumable upload session URL, Android only.
The SDK's own file form. Shipped (see keepClasses in build.gradle.kts).
Downloads the object to the file at destination; the kotlinx-io form of getFile(File). Fails on JS, whose SDK has no file downloads (behind @UnsupportedOnJs there).
Fails: the JS SDK downloads through URLs, not to files; use StorageReference.getBytes or StorageReference.getDownloadUrl.
The SDK's own file form. Shipped (see keepClasses in build.gradle.kts).
Fails: the JS SDK downloads through URLs, not to files; use StorageReference.getBytes or StorageReference.getDownloadUrl.
Uploads the bytes of source to this reference, closing it; the kotlinx-io form of putStream(InputStream). On Android and the JVM the SDK streams the source as it uploads; the Apple and JS SDKs upload whole buffers, so there the source is read to its end first (off the caller's thread on Apple platforms, at once on JS).
The FirebaseStorage of app.
The FirebaseStorage of the default FirebaseApp for the bucket of url.
The FirebaseStorage of app for the bucket of url.
Builds StorageMetadata with init applied to a StorageMetadata.Builder.