AI-generated Key Takeaways
-
OpenFileCallback is an abstract class used for progress events during a file contents download.
-
It is passed to the openFile method of DriveResourceClient.
-
It includes abstract methods to handle successful downloads (onContents), errors (onError), and download progress (onProgress).
A callback for progress events on an active file contents download. This listener can be
passed to openFile(com.google.android.gms.drive.DriveFile, int, OpenFileCallback)
.
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
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.

