FileDownloadTask.TaskSnapshot

public class FileDownloadTask.TaskSnapshot extends StorageTask.SnapshotBase


Encapsulates state about the running FileDownloadTask

Summary

Public methods

long
long

Extension functions

final long

Destructuring declaration for FileDownloadTask.TaskSnapshot to provide bytesTransferred.

final long

This method is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

final long

Destructuring declaration for FileDownloadTask.TaskSnapshot to provide totalByteCount.

final long

This method is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

Inherited methods

From com.google.firebase.storage.StorageTask.SnapshotBase
@Nullable Exception

Returns the last error encountered.

@NonNull StorageReference

Returns the target of the upload.

@NonNull StorageTask<ResultT>

Returns the StorageTask for this state.

Public methods

getBytesTransferred

public long getBytesTransferred()
Returns
long

the total bytes downloaded so far.

getTotalByteCount

public long getTotalByteCount()
Returns
long

the total bytes to upload..

Extension functions

StorageKt.component1

public final long StorageKt.component1(@NonNull FileDownloadTask.TaskSnapshot receiver)

Destructuring declaration for FileDownloadTask.TaskSnapshot to provide bytesTransferred.

Returns
long

the bytesTransferred of the FileDownloadTask.TaskSnapshot

StorageKt.component1

public final long StorageKt.component1(@NonNull FileDownloadTask.TaskSnapshot receiver)

Destructuring declaration for FileDownloadTask.TaskSnapshot to provide bytesTransferred.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-storage-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

Returns
long

the bytesTransferred of the FileDownloadTask.TaskSnapshot

StorageKt.component2

public final long StorageKt.component2(@NonNull FileDownloadTask.TaskSnapshot receiver)

Destructuring declaration for FileDownloadTask.TaskSnapshot to provide totalByteCount.

Returns
long

the totalByteCount of the FileDownloadTask.TaskSnapshot

StorageKt.component2

public final long StorageKt.component2(@NonNull FileDownloadTask.TaskSnapshot receiver)

Destructuring declaration for FileDownloadTask.TaskSnapshot to provide totalByteCount.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-storage-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

Returns
long

the totalByteCount of the FileDownloadTask.TaskSnapshot