public abstract class

OpenFileCallback

extends Object
java.lang.Object
   ↳ com.google.android.gms.drive.events.OpenFileCallback

Class Overview

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).

Summary

Public Constructors
OpenFileCallback()
Public Methods
abstract void onContents(DriveContents contents)
Called when the file is downloaded.
abstract void onError(Exception exception)
Called when there is an error opening the file.
abstract void onProgress(long bytesDownloaded, long bytesExpected)
Called while the file is being downloaded to report download progress.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OpenFileCallback ()

Public Methods

public abstract void onContents (DriveContents contents)

Called when the file is downloaded.

Parameters
contents DriveContents

public abstract void onError (Exception exception)

Called when there is an error opening the file.

Parameters
exception Exception

public abstract void onProgress (long bytesDownloaded, long bytesExpected)

Called while the file is being downloaded to report download progress.

Parameters
bytesDownloaded long
bytesExpected long