OpenFileCallback
Stay organized with collections
Save and categorize content based on your preferences.
Public Constructor Summary
Public Method Summary
abstract void |
|
abstract void |
|
abstract void |
onProgress(long bytesDownloaded, long bytesExpected)
Called while the file is being downloaded to report download progress.
|
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Constructors
public OpenFileCallback ()
Public Methods
public abstract void onContents (DriveContents
contents)
Called when the file is downloaded.
public abstract void onError (Exception
exception)
Called when there is an error opening the file.
public abstract void onProgress (long bytesDownloaded,
long bytesExpected)
Called while the file is being downloaded to report download progress.
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."],[[["`OpenFileCallback` is an abstract class used to track the progress of downloading file contents from Google Drive."],["It provides methods to handle successful downloads (`onContents`), errors (`onError`), and progress updates (`onProgress`)."],["Developers need to extend this class and implement these methods to interact with the download process."],["The callback is triggered when using `DriveResourceClient.openFile()` to open a `DriveFile`."]]],[]]