UpdateProgress

public interface UpdateProgress


Represents a progress update or a final state from updating an app.

Summary

Public methods

abstract long

Returns the number of bytes downloaded so far for an APK.

abstract long

Returns the file size of the APK file to download in bytes.

abstract @NonNull UpdateStatus

Returns the current UpdateStatus of the update.

Extension functions

default final long

Destructuring declaration for UpdateProgress to provide apkBytesDownloaded.

default final long

Destructuring declaration for UpdateProgress to provide apkFileTotalBytes.

default final @NonNull UpdateStatus

Destructuring declaration for UpdateProgress to provide updateStatus.

Public methods

getApkBytesDownloaded

abstract long getApkBytesDownloaded()

Returns the number of bytes downloaded so far for an APK.

the number of bytes downloaded, or -1 if called when updating to an AAB or if no new release is available.

getApkFileTotalBytes

abstract long getApkFileTotalBytes()

Returns the file size of the APK file to download in bytes.

the file size in bytes, or -1 if called when updating to an AAB or if no new release is available.

getUpdateStatus

abstract @NonNull UpdateStatus getUpdateStatus()

Returns the current UpdateStatus of the update.

Extension functions

FirebaseAppDistributionKt.component1

default final long FirebaseAppDistributionKt.component1(@NonNull UpdateProgress receiver)

Destructuring declaration for UpdateProgress to provide apkBytesDownloaded.

Returns
long

the apkBytesDownloaded of the UpdateProgress

FirebaseAppDistributionKt.component2

default final long FirebaseAppDistributionKt.component2(@NonNull UpdateProgress receiver)

Destructuring declaration for UpdateProgress to provide apkFileTotalBytes.

Returns
long

the apkFileTotalBytes of the UpdateProgress

FirebaseAppDistributionKt.component3

default final @NonNull UpdateStatus FirebaseAppDistributionKt.component3(@NonNull UpdateProgress receiver)

Destructuring declaration for UpdateProgress to provide updateStatus.

Returns
@NonNull UpdateStatus

the updateStatus of the UpdateProgress