UpdateProgress

interface UpdateProgress


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

Summary

Public functions

Long

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

Long

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

UpdateStatus

Returns the current UpdateStatus of the update.

Extension functions

operator Long

Destructuring declaration for UpdateProgress to provide apkBytesDownloaded.

operator Long

Destructuring declaration for UpdateProgress to provide apkFileTotalBytes.

operator UpdateStatus

Destructuring declaration for UpdateProgress to provide updateStatus.

Public functions

getApkBytesDownloaded

fun getApkBytesDownloaded(): Long

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

fun getApkFileTotalBytes(): Long

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

fun getUpdateStatus(): UpdateStatus

Returns the current UpdateStatus of the update.

Extension functions

component1

operator fun UpdateProgress.component1(): Long

Destructuring declaration for UpdateProgress to provide apkBytesDownloaded.

Returns
Long

the apkBytesDownloaded of the UpdateProgress

component2

operator fun UpdateProgress.component2(): Long

Destructuring declaration for UpdateProgress to provide apkFileTotalBytes.

Returns
Long

the apkFileTotalBytes of the UpdateProgress

component3

operator fun UpdateProgress.component3(): UpdateStatus

Destructuring declaration for UpdateProgress to provide updateStatus.

Returns
UpdateStatus

the updateStatus of the UpdateProgress