DriveFile.DownloadProgressListener
Stay organized with collections
Save and categorize content based on your preferences.
Public Method Summary
abstract void |
onProgress(long bytesDownloaded, long bytesExpected)
|
Public Methods
public abstract void onProgress (long bytesDownloaded,
long bytesExpected)
Parameters
bytesDownloaded |
the number of bytes downloaded so far. |
bytesExpected |
the expected number of total bytes. This value is an estimate and might not
correspond to the contents eventually returned. Note: This value will be -1 if the
expected number of total bytes is unknown. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`DriveFile.DownloadProgressListener` is deprecated and should no longer be used."],["Developers should utilize `OpenFileCallback` as the replacement for monitoring download progress."],["This listener was previously used for tracking the progress of active content downloads from Google Drive files."],["The `onProgress` method provided updates on the downloaded bytes versus the total expected bytes, although the total could be an estimate or unknown."]]],["The `DriveFile.DownloadProgressListener` interface is deprecated and should be replaced with `OpenFileCallback`. It was used to monitor download progress, providing information on `bytesDownloaded` and `bytesExpected` via the `onProgress` method. The `bytesExpected` value was an estimate and could be -1 if the total size was unknown. This interface was used as an optional parameter in the `open` method for monitoring file download progress.\n"]]